You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Anne Thomas Manes <at...@gmail.com> on 2005/03/18 20:29:23 UTC
Re: 1.2rc2 (Wrapped) Document/Literal soap response for array items xmlns set to ""
As a quick workaround, add elementFormDefault="qualified" to your schema:
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://xmlns.mycompany.com/ws"
elementFormDefault="qualified" >
Anne
On Fri, 18 Mar 2005 03:08:07 +0000, M S <mj...@hotmail.com> wrote:
>
>
> 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">sancho@company.com</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!