axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From axis-...@ws.apache.org
Subject [jira] Created: (AXIS-1558) When <choice minOccurs=0>, elemField.setMinOccurs(0) is not emitted
Date Thu, 16 Sep 2004 17:11:37 GMT
Message:

  A new issue has been created in JIRA.

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

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1558
    Summary: When <choice minOccurs=0>, elemField.setMinOccurs(0) is not emitted
       Type: Bug

     Status: Unassigned
   Priority: Minor

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             beta-3

   Assignee: 
   Reporter: Petru Gardea

    Created: Thu, 16 Sep 2004 10:10 AM
    Updated: Thu, 16 Sep 2004 10:10 AM
Environment: XP SP2, Sun JDK 1.4.2_04

Description:
Given the current design, I believe that for a choice with minOccurs=0, the emitted code should
always have elemField.setMinOccurs(0) for all the elements on all the possible choices. Otherwise,
as with another noted issue, "null" (i.e. xsi:nil="true") elements are created.
One way to tackle this (at least temporarily) could be to consider the nillable attribute
when processing schema for element declarations. Non-nillable elements should never be serialized
with nil, even when the serializer holds null references for "mandatory" elements (for which
elemField.setMinOccurs(0) was not called).



---------------------------------------------------------------------
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