axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [jira] Created: (AXIS-1357) non nillable element sent as nil
Date Tue, 11 May 2004 18:57:56 GMT
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1357

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1357
    Summary: non nillable element sent as nil
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Serialization/Deserialization
             WSDL processing
   Versions:
             1.2 Beta

   Assignee: 
   Reporter: Brian Speight

    Created: Tue, 11 May 2004 11:57 AM
    Updated: Tue, 11 May 2004 11:57 AM
Environment: 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.


---------------------------------------------------------------------
JIRA INFORMATION:
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


Mime
View raw message