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 "Rainer Menzner (JIRA)" <ji...@apache.org> on 2006/11/14 08:48:37 UTC

[jira] Created: (AXIS2-1702) WSDL2Java: minOccurs and maxOccurs in / are not respected.

WSDL2Java: minOccurs and maxOccurs in <sequence>/<choice> are not respected.
----------------------------------------------------------------------------

                 Key: AXIS2-1702
                 URL: http://issues.apache.org/jira/browse/AXIS2-1702
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: adb
    Affects Versions: 1.1
         Environment: WinXP
            Reporter: Rainer Menzner


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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1702) WSDL2Java: minOccurs and maxOccurs in / are not respected.

Posted by "Joel D'sa (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-1702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12603606#action_12603606 ] 

Joel D'sa commented on AXIS2-1702:
----------------------------------

I am using Axis2 1.4 and am still seeing this issue. Is there some wsdl2java flag to handle this or should I use an updated jar file?

> WSDL2Java: minOccurs and maxOccurs in <sequence>/<choice> are not respected.
> ----------------------------------------------------------------------------
>
>                 Key: AXIS2-1702
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1702
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.1
>         Environment: WinXP
>            Reporter: Rainer Menzner
>            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.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1702) WSDL2Java: minOccurs and maxOccurs in / are not respected.

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1702?page=comments#action_12459219 ] 
            
Amila Chinthaka Suriarachchi commented on AXIS2-1702:
-----------------------------------------------------

I think this was discussed in an earlier maling thread as well. The reason is the adb does not support the minOccurs and maxOccrs in sequence level. but it supports them in element level.

> WSDL2Java: minOccurs and maxOccurs in <sequence>/<choice> are not respected.
> ----------------------------------------------------------------------------
>
>                 Key: AXIS2-1702
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1702
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.1
>         Environment: WinXP
>            Reporter: Rainer Menzner
>         Assigned To: Amila Chinthaka Suriarachchi
>
> 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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1702) WSDL2Java: minOccurs and maxOccurs in / are not respected.

Posted by "Rainer Menzner (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1702?page=comments#action_12459225 ] 
            
Rainer Menzner commented on AXIS2-1702:
---------------------------------------

Hi Amila,

yes, somebody mentioned that this was not supported by adb. But 
according to my
understanding, it is a bug (or at least a sorely missing feature) because a
considerable number of problems can be solved far more easy if minOccurs and
maxOccurs are respected. And after all, minOccurs and maxOccurs at the 
sequence /
choice level is well-defined WSDL which should at least not be silently 
ignored.
This is the reason why I filed a JIRA.

-Rainer



-- 

Dr. Rainer Menzner
Research & Development

Identix
an L-1 Identity Solutions Company (NYSE: ID)

Mail Address:
Viisage Technology AG
Universitaetsstrasse 160
D-44801 Bochum, Germany

Phone:  +49 (0)234 9787-41
Fax:    +49 (0)234 9787-77
E-mail: rmenzner@L1id.com

Visit our Website: www.L1id.com




> WSDL2Java: minOccurs and maxOccurs in <sequence>/<choice> are not respected.
> ----------------------------------------------------------------------------
>
>                 Key: AXIS2-1702
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1702
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.1
>         Environment: WinXP
>            Reporter: Rainer Menzner
>         Assigned To: Amila Chinthaka Suriarachchi
>
> 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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-1702) WSDL2Java: minOccurs and maxOccurs in / are not respected.

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-1702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-1702.
-------------------------------------------------

    Resolution: Fixed

this issue is already resolved

> WSDL2Java: minOccurs and maxOccurs in <sequence>/<choice> are not respected.
> ----------------------------------------------------------------------------
>
>                 Key: AXIS2-1702
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1702
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.1
>         Environment: WinXP
>            Reporter: Rainer Menzner
>            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.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1702) WSDL2Java: minOccurs and maxOccurs in / are not respected.

Posted by "Robert de Bésche (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-1702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656620#action_12656620 ] 

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

Anything happening here? We are using Axis2 1.4 and still seeing the issue. CXF generates the code correctly, about time Axis does too!

> WSDL2Java: minOccurs and maxOccurs in <sequence>/<choice> are not respected.
> ----------------------------------------------------------------------------
>
>                 Key: AXIS2-1702
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1702
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.1
>         Environment: WinXP
>            Reporter: Rainer Menzner
>            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.


[jira] Updated: (AXIS2-1702) WSDL2Java: minOccurs and maxOccurs in / are not respected.

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-1702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe updated AXIS2-1702:
-------------------------------------

    Priority: Blocker  (was: Major)

> WSDL2Java: minOccurs and maxOccurs in <sequence>/<choice> are not respected.
> ----------------------------------------------------------------------------
>
>                 Key: AXIS2-1702
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1702
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.1
>         Environment: WinXP
>            Reporter: Rainer Menzner
>            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.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Assigned: (AXIS2-1702) WSDL2Java: minOccurs and maxOccurs in / are not respected.

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1702?page=all ]

Deepal Jayasinghe reassigned AXIS2-1702:
----------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> WSDL2Java: minOccurs and maxOccurs in <sequence>/<choice> are not respected.
> ----------------------------------------------------------------------------
>
>                 Key: AXIS2-1702
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1702
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.1
>         Environment: WinXP
>            Reporter: Rainer Menzner
>         Assigned To: Amila Chinthaka Suriarachchi
>
> 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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1702) WSDL2Java: minOccurs and maxOccurs in / are not respected.

Posted by "Ulf Heyder (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-1702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12504257 ] 

Ulf Heyder commented on AXIS2-1702:
-----------------------------------

I still have the described problem Version 1.2.

When has it been resolved Amila?

Ulf

> WSDL2Java: minOccurs and maxOccurs in <sequence>/<choice> are not respected.
> ----------------------------------------------------------------------------
>
>                 Key: AXIS2-1702
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1702
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.1
>         Environment: WinXP
>            Reporter: Rainer Menzner
>            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.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org