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/10/05 01:53:32 UTC
[jira] Created: (AXIS-1586) unbound choice do not return array type
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/AXIS-1586
Here is an overview of the issue:
---------------------------------------------------------------------
Key: AXIS-1586
Summary: unbound choice do not return array type
Type: Bug
Status: Unassigned
Priority: Major
Project: Axis
Components:
Basic Architecture
Versions:
1.2RC1
Assignee:
Reporter: Valdis Victor Vitayaudom
Created: Mon, 4 Oct 2004 4:52 PM
Updated: Mon, 4 Oct 2004 4:52 PM
Environment: fedora using java j2sdk1.4.2_05
Description:
<xs:element name="PNR">
<xs:complexType>
<xs:sequence>
<xs:element name="Segments">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element ref="MiscSegment"/>
<xs:element ref="AirSegment"/>
<xs:element ref="ArvlUnknSegment"/>
</xs:choice>
</xs:complexType>
</xs:element>
...
</xs:sequence>
</xs:complexType>
</xs:element>
the schema above is not properly reflect in the WSDL-2-Java.
It creates a PNR class where getPNRSegments() is not an array
of unbound choices.
public class PNR implements java.io.Serializable {
....
public com.g2switch.wsdl.PNRSegments getSegments() {
return segments;
}
...
}
public class PNRSegments implements java.io.Serializable {
private com.g2switch.wsdl.MiscSegment miscSegment;
private com.g2switch.wsdl.AirSegment airSegment;
private com.g2switch.wsdl.ArvlUnknSegment arvlUnknSegment;
public PNRSegments() {
}
public PNRSegments(
com.g2switch.wsdl.MiscSegment miscSegment,
com.g2switch.wsdl.AirSegment airSegment,
com.g2switch.wsdl.ArvlUnknSegment arvlUnknSegment) {
this.miscSegment = miscSegment;
this.airSegment = airSegment;
this.arvlUnknSegment = arvlUnknSegment;
}
....
}
---------------------------------------------------------------------
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