[jboss-user] [JBossWS] - Re: JBossWS response does not match WSDL message definition;
Doug.Palmer
do-not-reply at jboss.com
Tue Aug 29 12:53:35 EDT 2006
Here is an example; the following wsdl was generated by JBossWS for my service:
| <definitions name='CalculatorService' targetNamespace='http://services/jaws' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://services/jaws' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
| <types></types>
| <message name='Calculator_add'>
| <part name='int_1' type='xsd:int'/>
| <part name='int_2' type='xsd:int'/>
| </message>
| <message name='Calculator_addResponse'>
| <part name='result' type='xsd:int'/>
| </message>
| <portType name='Calculator'>
| <operation name='add' parameterOrder='int_1 int_2'>
| <input message='tns:Calculator_add'/>
| <output message='tns:Calculator_addResponse'/>
| </operation>
| </portType>
| <binding name='CalculatorBinding' type='tns:Calculator'>
| <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
| <operation name='add'>
| <soap:operation soapAction=''/>
| <input>
| <soap:body namespace='http://services/jaws' use='literal'/>
| </input>
| <output>
| <soap:body namespace='http://services/jaws' use='literal'/>
| </output>
| </operation>
| </binding>
| <service name='CalculatorService'>
| <port binding='tns:CalculatorBinding' name='CalculatorPort'>
| <soap:address location='http://Dogbook.local:8080/test-services/CalculatorBean'/>
| </port>
| </service>
| </definitions>
|
If I send a request message in tags <Calculator_add> then the service endpoint reports that the porttype does not contain an operation named <Calculator_add>. Instead the service expects tags .
Similarly, the service will return instead of <Calculator_addResponse> which was described in the wsdl.
Why does this mismatch exist?
Regards
Doug
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968143#3968143
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968143
More information about the jboss-user
mailing list