document style with multiple parts

Chuck Hinson <[email protected]> Fri, 15 Nov 2002 23:59:56 -0500
Newsgroups gmane.comp.windows.devel.soap.general
Message-ID <[email protected]>
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.