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 Joel Balestra <jb...@materialogic.com> on 2007/12/12 21:32:15 UTC
Missing Element Issue
I have a stumbled upon a rather peculiar issue regarding the naming
convention of elements being returned by a service. If the second character
of the element's name is uppercase, the service's response does not contain
the element even when the WSDL shows the element correctly. The contents of
the element doesn't affect anything. Neither does the case of the other
characters in the element's name. I've included snippets from the WSDL and
service call response.
>From WSDL
<xs:sequence>
<xs:element minOccurs="0" name="email" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="eMail" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="emAil" nillable="true" type="xs:string"/>
</xs:sequence>
>From service response
<ns:getEMailResponse>
<return type=". . . .getEMailWrapper">
<email>sample@email.com</email>
<emAil>sample@emAil.com</emAil>
</return>
</ns:getEMailResponse>
Joel Balestra
Programmer/Web Developer
Materialogic
PH: 800-333-7144
PH: 314-997-4342 Ext. 3519
FX: 314-997-7814
Re: Missing Element Issue
Posted by Amila Suriarachchi <am...@gmail.com>.
Can you send some more details?
are you using wsdl2java in axis2 to generate the code?
Amila.
On Dec 13, 2007 2:02 AM, Joel Balestra <jb...@materialogic.com> wrote:
> I have a stumbled upon a rather peculiar issue regarding the naming
> convention of elements being returned by a service. If the second character
> of the element's name is uppercase, the service's response does not contain
> the element even when the WSDL shows the element correctly. The contents of
> the element doesn't affect anything. Neither does the case of the other
> characters in the element's name. I've included snippets from the WSDL and
> service call response.
>
>
>
> From WSDL
>
> <xs:sequence>
>
> <xs:element minOccurs="0" name="email" nillable="true" type="xs:string"/>
>
> <xs:element minOccurs="0" name="eMail" nillable="true" type="xs:string"/>
>
> <xs:element minOccurs="0" name="emAil" nillable="true" type="xs:string"/>
>
> </xs:sequence>
>
>
>
> From service response
>
> <ns:getEMailResponse>
>
> <return type=". . . .getEMailWrapper">
>
> <email>sample@email.com</email>
>
> <emAil>sample@emAil.com</emAil>
>
> </return>
>
> </ns:getEMailResponse>
>
>
>
>
>
> Joel Balestra
>
> Programmer/Web Developer
>
> Materialogic
>
> PH: 800-333-7144
>
> PH: 314-997-4342 Ext. 3519
>
> FX: 314-997-7814
>
>
>
--
Amila Suriarachchi,
WSO2 Inc.