Hi,

It looks like AXIS 1.2 RC2 is sometimes incorrectly setting/including  the xmlns="" attribute for child "item"s of array elements when using Document/Literal (Wrapped).

My .NET cilent cannot deserialize the requestedAttributes (NamedValue[]) section of complex type Item correctly, yet can correctly deserialize the top-level loginReturn (which is also NamedValue[]).

Is this bug http://issues.apache.org/jira/browse/AXIS-1547

thanks,

Matt.

SOAP (Respone) Body Contents:

<loginResponse xmlns="http://xmlns.mycompany.com/ws">
  <loginReturn>
    <name>LOGIN_USER</name>
    <value xsi:type="ns1:Item" xmlns:ns1="http://xmlns.mycompany.com/ws">
      <id>6678</id>
      <name>sancho</name>
      <requestedAttributes>
        <item xmlns="">
          <name>EMAIL_ADDRESS</name>
          <value xsi:type="xsd:string">[EMAIL PROTECTED]</value>
        </item>
        <item xmlns="">
          <name>PERSONAL_WORKSPACE:NAME</name>
          <value xsi:type="xsd:string">sancho</value>
        </item>
      </requestedAttributes
      <type>USER</type>
    </value>
  </loginReturn>
<loginResponse>

 

Relevant WSDL Sections:

<complexType name="Item">
  <sequence>
    <element name="id" type="xsd:long" />
    <element name="name" nillable="true" type="xsd:string" />
    <element name="requestedAttributes" nillable="true" type="impl:ArrayOfNamedValue" />
    <element name="type" nillable="true" type="xsd:string" />
  </sequence>
</complexType>

<complexType name="ArrayOfNamedValue">
  <sequence>
    <element name="item" type="impl:NamedValue" minOccurs="0" maxOccurs="unbounded" />
  </sequence>
</complexType>

<complexType name="NamedValue">
  <sequence>
    <element name="name" nillable="true" type="xsd:string" />
    <element name="value" nillable="true" type="xsd:anyType" />
  </sequence>
</complexType>

<element name="loginResponse">
  <complexType>
    <sequence>
      <element name="loginReturn" type="impl:NamedValue" maxOccurs="unbounded" />
    </sequence>
  </complexType>
</element>

<wsdl:message name="loginResponse">
  <wsdl:part name="parameters" element="impl:loginResponse" />
</wsdl:message>



Find just what you're after with the new, more precise MSN Search - try it now!

Reply via email to