axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert de Bésche (JIRA) <j...@apache.org>
Subject [jira] Commented: (AXIS2-4177) CLONE -WSDL2Java: minOccurs and maxOccurs in <sequence>/<choice> are not respected.
Date Mon, 15 Dec 2008 14:07:44 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-4177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656634#action_12656634
] 

Robert de Bésche commented on AXIS2-4177:
-----------------------------------------

We are using Axis2 1.4  but the following XSD still generates a java class with room for only
 a single 'myElement'.

<xsd:complexType name="MyArrayList">
    <xsd:sequence maxOccurs="unbounded" minOccurs="0"> 
       <xsd:element name="myElement" type="xsd:string"/>
    </xsd:sequence>
 </xsd:complexType>

CXF correctly assigns a List-type variable to 'MyArrayList' so multiple values can be held
- about time Axis did too!

> CLONE -WSDL2Java: minOccurs and maxOccurs in <sequence>/<choice> are not
respected.
> -----------------------------------------------------------------------------------
>
>                 Key: AXIS2-4177
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4177
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.1
>         Environment: WinXP
>            Reporter: Robert de Bésche
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Blocker
>
> The following is a valid wsdl code:
>            <xsd:element name="ClaimMultipleElementsResult" type="tns:ClaimMultipleElementsResultType"/>
>            <xsd:complexType name="ClaimMultipleElementsResultType">
>                <xsd:sequence maxOccurs="unbounded" minOccurs="0">
>                    <xsd:element name="Element" type="xsd:hexBinary" maxOccurs="1"
minOccurs="1"/>
>                    <xsd:element name="ElementId" type="xsd:int" maxOccurs="1" minOccurs="1"/>
>                </xsd:sequence>
>            </xsd:complexType>
> This means, the ClaimMultipleElementsResultType can contain zero or more pairs of Element
/ ElementId.
> However, the stub class ClaimMultipleElementsResultType created by WSDL2Java provides
> only access for *one* pair of Element / ElementId. 
> I'm not sure whether this is a duplicate of issue AXIS2-840.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message