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 "Davanum Srinivas (JIRA)" <ax...@ws.apache.org> on 2005/07/12 16:30:14 UTC

[jira] Resolved: (AXIS-2022) WSDL2Java baulks at legitimate maxOccurs="unbounded"

     [ http://issues.apache.org/jira/browse/AXIS-2022?page=all ]
     
Davanum Srinivas resolved AXIS-2022:
------------------------------------

    Resolution: Fixed

closing as per last comment

> WSDL2Java baulks at legitimate maxOccurs="unbounded"
> ----------------------------------------------------
>
>          Key: AXIS-2022
>          URL: http://issues.apache.org/jira/browse/AXIS-2022
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2, 1.2.1
>  Environment: Windows 2000 Professional; Java 1.4.2-b28
>     Reporter: Jeff Lawson

>
> This pattern:
> <element name="MyElement" type="abc:MyType"/>
> <complexType name="MyType">
>   <sequence>
>     <element ref="abc:MyOtherElement" minOccurs="0" maxOccurs="unbounded"/>
>   </sequence>
> </complexType>
> causes WSDL2Java to throw:
>     java.io.IOException: Type {http://ay-bee-cee/}MyOtherElement is
> referenced but not defined
> maxOccurs="unbounded" is causing the problem because this pattern:
> <element name="MyElement" type="abc:MyType"/>
> <complexType name="MyType">
>   <sequence>
>     <element ref="abc:MyOtherElement" minOccurs="0"/>
>   </sequence>
> </complexType>
> does not throw an exception, though it's too far from what I want. I discovered, however, that this pattern:
> <element name="MyElement" type="abc:MyType"/>
> <complexType name="MyType">
>   <sequence>
>     <element ref="abc:MyUnwantedElement" minOccurs="0"/>
>     <element ref="abc:MyOtherElement" minOccurs="0" maxOccurs="unbounded"/>
>   </sequence>
> </complexType>
> didn't throw an exception either and it produced code from which I could easily remove MyUnwantedElement-related content.

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