Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2 Beta
-
None
-
Win 2k, Resin
Description
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.
Attachments
Issue Links
- duplicates
-
AXIS-530 elements without minOccurs="0" produce isnill="true" on the wire
- Resolved