2 Replies Latest reply on Nov 9, 2005 8:38 PM by Anatoly Osiko

    wscompile and ant

    chahua wang Newbie

      Hi folks,

      Could you tell me where I can find the doc about wscompile tool built in ANT task.

      I went ANT doc, could not find any wscompile task in ANT.

      Thank you!

      Chwang

        • 1. Re: wscompile and ant
          Anatoly Osiko Newbie

          May be there such tasks have been created somewhere, but in the meantime you can do something like this:








          <!---->


          <!---->
















          or for top-down design

          <!-- compile from WSDL -->





          <!---->

















          • 2. Re: wscompile and ant
            Anatoly Osiko Newbie

            May be there such tasks have been created somewhere, but in the meantime you can do something like this:

            for top-down design:

             <target name="wscompile-service-fromwsdl" depends="prepare-service">
             <mkdir dir="${build.dir}/${service}/server/dd/wsdl" />
             <copy file="${common.xml.schema.dir}/chart.xsd" todir="report/server/ws/wsdl"/>
             <exec executable="wscompile.sh">
             <arg value="-classpath" />
             <arg value="${build.dir}/${service}/server" />
             <arg value="-gen:server" />
             <arg value="-f:donotoverride" />
             <arg value="-f:documentliteral" />
             <arg value="-keep" />
             <arg value="-nd" />
             <arg value="${build.dir}/${service}/server/dd/wsdl" />
             <arg value="-d" />
             <arg value="${build.dir}/${service}/server" />
             <arg value="-verbose" />
             <arg value="-f:wsi" />
             <arg value="-mapping" />
             <arg value="${build.dir}/${service}/server/dd/${service.IF}-mapping.xml" />
             <arg value="${service}/server/ws/config-wsdl.xml" />
             </exec>
             </target>
            
            


            from interface to wsdl:



            <target name="wscompile-service-towsdl">
             <antcall target="prepare">
             <param name="service" value="${service}"/>
             </antcall>
            
             <mkdir dir="${build.dir}/server/dd/wsdl" />
             <exec executable="wscompile.sh">
             <!--<exec executable="/opt/jwsdp-1.5/jaxrpc/bin/wscompile.sh">-->
             <arg value="-classpath" />
             <arg value="${build.dir}/server" />
             <!--<arg value="-define" />-->
             <arg value="-gen:server" />
             <arg value="-f:donotoverride" />
             <arg value="-f:documentliteral" />
             <arg value="-keep" />
             <arg value="-nd" />
             <arg value="${build.dir}/server/dd/wsdl" />
             <arg value="-d" />
             <arg value="${build.dir}/server" />
             <arg value="-verbose" />
             <arg value="-mapping" />
             <arg value="${build.dir}/server/dd/jaxrpc-mapping.xml" />
             <arg value="server/dd/ws/config.xml" />
             </exec>
             </target>