Re: document style with multiple parts
Alex DeJarnatt <[email protected]> Mon, 18 Nov 2002 15:18:48 -0800
| Newsgroups | gmane.comp.windows.devel.soap.general |
|---|---|
| Message-ID | <808430529A5A9A46AD69CC50D0C3AD3D02766174@red-msg-08.redmond.corp.microsoft.com> |
Chuck, with document style the WSDL spec says that the element
referenced by each message part will appear under <soap:Body>. So you
should see the following:
<soap:Body>
<User>
<userId>...</userId>
<password>...</password>
</User>
</soap:Body>
You should not see any mention of AddUser in the message itself. I don't
really know about Axis's support for document style, though.
alex
-----Original Message-----
From: Chuck Hinson [mailto:[email protected]]
Sent: Friday, November 15, 2002 9:00 PM
To: [email protected]
Subject: [SOAP] document style with multiple parts
I have WSDL something like this:
. . .
<element name="User">
<complexType>
<sequence>
<element name="userId" nillable="true" type="string"/>
<element name="password" nillable="true" type="string"/>
</sequence>
</complexType>
</element>
. . .
<message name="AddUserRequest">
<part name="user" element="x:User"/>
</message>
. . .
Assuming I have an operation named "AddUser" with style="document" that
uses the above message for input.
I was expecting the above WSDL to correspond to see something like:
<soap-env:Body>
<AddUser ...>
<user>
<userId>test</userId>
<password>secret</password>
</user>
</AddUser>
</soap-env:Body>
Axis doesnt seem to like this, complaining that <user> is an invalid
element. However, the following body seems to be acceptable
<soap-env:Body>
<AddUser ...>
<userId>test</userId>
<password>secret</password>
</AddUser>
</soap-env:Body>
Before I go chasing down Axis-specific things, I'm curious to know
whether my expectation is reasonable, or if I misunderstand something
about document style messages.
--Chuck
You can read messages from the SOAP archive, unsubscribe from SOAP, or
subscribe to other
DevelopMentor lists at http://discuss.develop.com.
You can read messages from the SOAP archive, unsubscribe from SOAP, or subscribe to other
DevelopMentor lists at http://discuss.develop.com.