You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Dominik Kacprzak (JIRA)" <ax...@ws.apache.org> on 2004/10/30 00:43:33 UTC

[jira] Commented: (AXIS-1357) non nillable element sent as nil

     [ http://issues.apache.org/jira/browse/AXIS-1357?page=comments#action_54819 ]
     
Dominik Kacprzak commented on AXIS-1357:
----------------------------------------

I believe this issue is a duplicate of AXIS-530.

> non nillable element sent as nil
> --------------------------------
>
>          Key: AXIS-1357
>          URL: http://issues.apache.org/jira/browse/AXIS-1357
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization, WSDL processing
>     Versions: 1.2 Beta
>  Environment: Win 2k, Resin
>     Reporter: Brian Speight

>
> Element defined in schema:
> <element name="numberOfChildren" type="xsd:int" minOccurs="0"/>
> When using Axis 1.2 Alpha:
> wsdl2java generates this...
> private int numberOfChildren;
> and when not setting any value for this, this is what is sent in the SOAP request...
> <numberOfChildren href="#id3"/>
> <multiRef id="id3" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">0</multiRef>
> So this works as expected.
> But, when using Axis 1.2 Beta:
> wsdl2jav generates this...
> private java.lang.Integer numberOfChildren;
> and when not setting any value for this, this is what is sent in the SOAP request...
> <numberOfChildren xsi:type="xsd:int" xsi:nil="true"/>
> This element was not declared as nillable in the schema and when sent as nil blows up when trying to deserialize.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira