I would add this to Anne's comments:

An rpc/encoded response can and often will have more than one child of Body element - provided all but one is marked with the soapenc:root="0" attribute this is fine.

It's common in array serialization where the array itself is nested in the "main" return element, as you would expect, but each element is serialized as a child of soap:Body (along with an id attribute and the aforementioned soapenc:root attrib ste to "0"). The array then references the elements under body with an IDREF. Thats how sparse arrays are handled.

Jim Murphy
Mindreef, Inc.



Anne Thomas Manes wrote:

When using rpc/encoded, both the request and the response messages must be formatted as a struct -- essentially a single wrapper element that is the only child of the SOAP body.

The name of the request message wrapper element is equal to the operation name. The subelements in the request wrapper element include the input parameters.
The name of the response message wrapper element is not significant. The subelements in the response wrapper element include the return value and any output parameters.


According to the SOAP 1.1 spec, when using doc/literal, the request and response messages may contain multiple child elements of the SOAP body, but results may be very unpredictable if you do so. The WS-I Basic Profile requires that the request and response messages contain only one child element in the SOAP body.

Anne

At 06:47 AM 9/26/2003 -0700, you wrote:

After seeing some of the public web services(or read somewhere on the net), with rpc style, i was under the assumption that all rpc style responses will have a 'return' node under the <soapenv:Body> but when used some of the axis samples it looks the node name can be anything defined on the wsdl.

But let me clarify this: can an rpc style response can have multiple nodes directly soap body?




Do you Yahoo!?
<http://shopping.yahoo.com/?__yltc=s%3A150000443%2Cd%3A22708228%2Cslk%3Atext%2Csec%3Amail>The New Yahoo! Shopping - with improved product search








Reply via email to