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 ax...@ws.apache.org on 2004/09/16 19:11:37 UTC
[jira] Created: (AXIS-1558) When , elemField.setMinOccurs(0) is not emitted
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