2 Replies Latest reply on Aug 1, 2005 8:44 AM by christy

    Mapping file generation with JWSDP-1.6?

    lafr

      The ant task obviously does not supported mapping creation.
      The standalone does.
      This is the part of my build file:

      <exec executable="${wscompile}" failonerror="true">
       <arg value="-define"/>
       <arg value="-cp"/><arg value="${build.classes.dir}:${build.war.classes.dir}:${basedir}/lib/log4j-1.2.8.jar"/>
       <arg value="-f:rpcliteral"/>
       <arg value="-f:wsi"/>
       <arg value="-nd"/><arg value="${gen-etc.dir}/ws/${ws.package}/WEB-INF/wsdl"/>
       <arg value="-mapping"/><arg value="${gen-etc.dir}/ws/${ws.package}/WEB-INF/${ws.name}-mapping.xml"/>
       <arg value="${etc.dir}/${ws.name}.xml"/>
      </exec>
      


        • 1. Re: Mapping file generation with JWSDP-1.6?
          anil.saldhana

          Interesting, only on Friday, I used the ant task for wscompile with the mapping attribute on jwsdp1.6 Here is the task I used:

           <wscompile fork="true"
           nonclassdir="${gen.dir}"
           base="${gen.build.dir}"
           features="@{wsdlstyle}"
           server="@{genserver}"
           client="@{genclient}"
           config="@{config}"
           mapping="@{mapping}"
           verbose="true"
           keep="true">
           <classpath>
           <path refid="jwsdp.class.path" />
           <path refid="build.classpath" />
           </classpath>
           </wscompile>
          
          


          • 2. Re: Mapping file generation with JWSDP-1.6?
            christy

            Hi, I have JWSDP 1.6 and everything works fine. I generated mapping file and WSDL file wuth this command:
            C:\Sun\jwsdp-1.6\jaxrpc\bin\wscompile -classpath E:\cod\oceaninfo\build\classes -gen:server -f:rpcliteral -f:searchschema -mapping mapping.xml config.xml

            Good luck,
            Kristina