2 Replies Latest reply on Jan 2, 2007 8:09 AM by martin.capote

    generation client-side classes

    fuzebest

      Hello!

      I'm trying togenerate client-side classes and mapping for ws.
      wstools config looks like

      <?xml version="1.0" encoding="UTF-8" ?>
      <configuration>
       <global>
       <package-namespace package="com.test.a" namespace="http://a.test.com/jaws"/>
       <package-namespace package="com.test.b" namespace="http://b.test.com/jaws"/>
       <package-namespace package="com.test.c" namespace="http://c.test.com/jaws"/>
       </global>
       <wsdl-java file="/tmp/TestService.wsdl">
       <mapping />
       </wsdl-java>
      </configuration>
      


      but all classes are generated in single package (corresponding to target namespace)
      How can I fix this?
      Thank you

        • 1. Re: generation client-side classes
          fuzebest

          forget to add wsdl file
          here it is

          <definitions name='ServService' targetNamespace='http://a.test.com/jaws' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://a.test.com/jaws' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
           <types>
           <schema elementFormDefault='qualified' targetNamespace='http://a.test.com/jaws' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:tns='http://a.test.com/jaws' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
           <complexType name='Value'>
           <sequence/>
           </complexType>
           </schema>
           </types>
           <message name='Serv_getValue'></message>
          
           <message name='Serv_getValueResponse'>
           <part name='result' type='tns:Value'/>
           </message>
           <portType name='Serv'>
           <operation name='getValue'>
           <input message='tns:Serv_getValue'/>
           <output message='tns:Serv_getValueResponse'/>
           </operation>
           </portType>
          
           <binding name='ServBinding' type='tns:Serv'>
           <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
           <operation name='getValue'>
           <soap:operation soapAction=''/>
           <input>
           <soap:body namespace='http://a.test.com/jaws' use='literal'/>
           </input>
           <output>
           <soap:body namespace='http://a.test.com/jaws' use='literal'/>
          
           </output>
           </operation>
           </binding>
           <service name='ServService'>
           <port binding='tns:ServBinding' name='ServPort'>
           <soap:address location='http://myhost:8080/ws/Serv'/>
           </port>
           </service>
          </definitions>
          


          generated by WSDLFilePublisher from java class
          package com.test.a;
          
          import javax.jws.WebMethod;
          import javax.jws.WebService;
          import javax.jws.soap.SOAPBinding;
          
          import com.test.b.Value;
          
          @WebService
          @SOAPBinding(style=SOAPBinding.Style.RPC)
          public class Serv {
          
           @WebMethod
           public Value getValue() {
           return null;
           }
          
          }
          


          • 2. Re: generation client-side classes

            Hi, i have the same problem. How can I fix this?
            Thanks