4 Replies Latest reply on May 10, 2006 11:10 AM by steinar.ardal

    javaToWSDL ? How to configure message part names?

    steinar.ardal

      I am using the javaToWSDL tool to generate the WSDL file from a SLSB, which works just fine.

      The only issue I have is that the tool is generating the WSDL file using String_1, String_2 etc for the method parameter names

      The method in the Service Interface

      public java.lang.String echo( java.lang.String echo )


      Ant code
      <wstools dest="${meta-inf.dir}" config="${resources.dir}/dd/ws/jboss-ws.xml" />


      The configuration file
      <configuration xmlns="http://www.jboss.org/jbossws-tools">
       <javaToWSDL>
       <service name="DataRetrieve" wsdlStyle="rpc" endpoint="com.me.ws.interfaces.DataRetrieveService"/>
       <namespaces targetNamespace="http://com.me.ws/DataRetrieve" typeNamespace="http://com.me.ws/types"/>
       <mapping fileName="jaxrpc-mapping.xml"/>
       <wsxml ejbLink="DataRetrieve"/>
       </javaToWSDL>
      </configuration>


      Part of the generated WSDL file
      <message name="DataRetrieveService_echo">
       <part name="String_1" type="xsd:string" />
      </message>


      What I want to achieve is to get the WSDL file to use the same name for the part name as the parameter, e.g:
      <message name="DataRetrieveService_echo">
       <part name="echo" type="xsd:string" />
      </message>


      Anybody?