WTP doesn't display RPC SOAP Response? [message #172638] |
Wed, 28 June 2006 19:36 |
Eclipse User |
|
|
|
Originally posted by: hcurtis.xaware.com
After selecting a WSDL and using "Web Services/Test with Web Services
Explorer" you can select the service, fill in the request, and then press GO
to send the SOAP message.
For our DOC/Literal message style SOAP messages the response is showed in
the Web Services Explorer "Status" panel. However, we have not been able to
get the same displayed response with RPC/Encoded or RPC/Literal. Can
someone explain what we are doing wrong?
The sent RPC/Lit message looks like:
<soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns0:Person1.Execute xmlns:ns0="http://xaware.com/xas/ns1/message">
<first>Jeff</first>
<last>Jones</last>
</ns0:Person1.Execute>
</soapenv:Body>
</soapenv:Envelope>
The response simply echos the names and adds a data item:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<Execute>
<Result>
<p:Person xmlns:p="http://xaware.com/Person"
xsi:schemaLocation="http://xaware.com/Person Person.xsd "
xmlns:xa="http://xaware.com/xas/ns1" xa:cache="yes"
xa:input_type="p.Person">
<p:Name>
<p:First>Jeff</p:First>
<p:Last>Jones</p:Last>
<p:data>myData/test</p:data>
</p:Name>
</p:Person>
</Result>
</Execute>
</soapenv:Body>
</soapenv:Envelope>
The WSDL's output response for this service is defined as:
<message name="MyService1.Person1.ExecuteResponse">
<part name="Result" type="typens:Operation.Result" />
</message>
If the WSDL's schema entry indicates the response is an <xsd:any...>
<type>
<schema ....
<complexType name="Operation.XAInputElement">
<sequence>
<any maxOccurs="unbounded" minOccurs="0"
namespace="#any" processContents="skip" />
</sequence>
</complexType>
then the native XML of the response is displayed in the status panel.
However, if the WSDL has a schema reference:
<type>
<schema ....
<complexType name="Operation.Result">
<sequence>
<xsd:element ref="p:Person" />
</sequence>
</complexType>
then the status panel indicates nothing was received. However, if you click
on the Source versus the Form view you can view the received response. Can
anyone explain how to get WTP to display the RPC received response? Do we
have our RPC response incorrectly formed?
--
Bud Curtis
XAware, Inc.
719-884-5443
|
|
|
|
Powered by
FUDForum. Page generated in 5.03271 seconds