[jboss-user] [JBossWS] - wsconsume with provider sample

superomega do-not-reply at jboss.com
Mon Mar 12 19:41:54 EDT 2007


Hallo

I use JBossWS 1.2.0 GA and want to test the ..../jaxws/samples/provider example. (JBoss 4.0.5 GA)

After I have compiled the given wsdl with /opt/jboss/bin/wsconsume.sh


  | <?xml version='1.0'?>
  | <definitions name='ProviderService' targetNamespace='http://org.jboss.ws/provider' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://org.jboss.ws/provider' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
  |  <types>
  |   <xs:schema targetNamespace='http://org.jboss.ws/provider' xmlns:tns='http://org.jboss.ws/provider' version='1.0' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
  |    <xs:element name='user' type='tns:UserType'/>
  |    <xs:complexType name='UserType'>
  |     <xs:sequence>
  |      <xs:element name='string' type='xs:string'/>
  |      <xs:element name='qname' type='xs:QName'/>
  |     </xs:sequence>
  |    </xs:complexType>
  |   </xs:schema>
  |  </types>
  |  <message name='echo'>
  |   <part element='tns:user' name='user'/>
  |  </message>
  |  <message name='echoResponse'>
  |   <part element='tns:user' name='user'/>
  |  </message>
  |  <portType name='Provider'>
  |   <operation name='echo'>
  |    <input message='tns:echo'/>
  |    <output message='tns:echoResponse'/>
  |   </operation>
  |  </portType>
  |  <binding name='ProviderBinding' type='tns:Provider'>
  |   <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>
  |   <operation name='echo'>
  |    <soap:operation soapAction=''/>
  |    <input>
  |     <soap:body use='literal'/>
  |    </input>
  |    <output>
  |     <soap:body use='literal'/>
  |    </output>
  |   </operation>
  |  </binding>
  |  <service name='ProviderService'>
  |   <port binding='tns:ProviderBinding' name='ProviderPort'>
  |    <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
  |   </port>
  |  </service>
  | </definitions>
  | 

I got a WebMethod like this: (Provider.java)


  |     @WebMethod
  |     public void echo(
  |         @WebParam(name = "user", targetNamespace = "http://org.jboss.ws/provider", mode = WebParam.Mode.INOUT, partName = "user")
  |         Holder<UserType> user);
  | 

But I thought that I shoud get back a UserType isn't this correct?
What do I have overlooked?

Greet,
Werner


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027382#4027382

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027382



More information about the jboss-user mailing list