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 "Kinichiro Inoguchi (JIRA)" <ji...@apache.org> on 2006/07/09 11:16:29 UTC

[jira] Created: (AXIS2-879) invalid generated WSDL for method returns array

invalid generated WSDL for method returns array
-----------------------------------------------

         Key: AXIS2-879
         URL: http://issues.apache.org/jira/browse/AXIS2-879
     Project: Apache Axis 2.0 (Axis2)
        Type: Bug

  Components: wsdl  
    Versions: 1.0    
 Environment: SDK 1.4.2  Tomcat5  WindowsXP
    Reporter: Kinichiro Inoguchi
 Attachments: TestService1.aar

Using RPCMessageReceiver with method that returns array, 
generated WSDL does not have minOccurs="0" and maxOccurs="unbounded".

I created class that has methods return array, like this,

    public int [] arrayInt(...)
    public HelloBean[] arrayBean(...)

Then I packed this to aar file and see WSDL with ?wsdl.
It shows like this.

    <xs:element name="arrayIntResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:element type="xs:int" name="return"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="arrayBeanResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:element type="stn_1:HelloBean" name="return"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

Those 2 Response definition should be have
minOccurs="0" and maxOccurs="unbounded", like this.

    <xs:element name="arrayIntResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:element type="xs:int" name="return" minOccurs="0" and maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

    <xs:element name="arrayBeanResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:element type="stn_1:HelloBean" name="return" minOccurs="0" and maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

I'll attach TestService1.aar that shows this issue.
Thanks.

-- 
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] Updated: (AXIS2-879) invalid generated WSDL for method returns array

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

Kinichiro Inoguchi updated AXIS2-879:
-------------------------------------

    Attachment: TestService1.aar

> invalid generated WSDL for method returns array
> -----------------------------------------------
>
>          Key: AXIS2-879
>          URL: http://issues.apache.org/jira/browse/AXIS2-879
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: wsdl
>     Versions: 1.0
>  Environment: SDK 1.4.2  Tomcat5  WindowsXP
>     Reporter: Kinichiro Inoguchi
>  Attachments: TestService1.aar
>
> Using RPCMessageReceiver with method that returns array, 
> generated WSDL does not have minOccurs="0" and maxOccurs="unbounded".
> I created class that has methods return array, like this,
>     public int [] arrayInt(...)
>     public HelloBean[] arrayBean(...)
> Then I packed this to aar file and see WSDL with ?wsdl.
> It shows like this.
>     <xs:element name="arrayIntResponse">
>         <xs:complexType>
>             <xs:sequence>
>                 <xs:element type="xs:int" name="return"/>
>             </xs:sequence>
>         </xs:complexType>
>     </xs:element>
>     <xs:element name="arrayBeanResponse">
>         <xs:complexType>
>             <xs:sequence>
>                 <xs:element type="stn_1:HelloBean" name="return"/>
>             </xs:sequence>
>         </xs:complexType>
>     </xs:element>
> Those 2 Response definition should be have
> minOccurs="0" and maxOccurs="unbounded", like this.
>     <xs:element name="arrayIntResponse">
>         <xs:complexType>
>             <xs:sequence>
>                 <xs:element type="xs:int" name="return" minOccurs="0" and maxOccurs="unbounded"/>
>             </xs:sequence>
>         </xs:complexType>
>     </xs:element>
>     <xs:element name="arrayBeanResponse">
>         <xs:complexType>
>             <xs:sequence>
>                 <xs:element type="stn_1:HelloBean" name="return" minOccurs="0" and maxOccurs="unbounded"/>
>             </xs:sequence>
>         </xs:complexType>
>     </xs:element>
> I'll attach TestService1.aar that shows this issue.
> Thanks.

-- 
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-879) invalid generated WSDL for method returns array

Posted by "Kinichiro Inoguchi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-879?page=comments#action_12420616 ] 

Kinichiro Inoguchi commented on AXIS2-879:
------------------------------------------

I could verify this issue was resolved with 
nightly build axis2.war 12-Jul-2006 05:28 .
Thanks.

> invalid generated WSDL for method returns array
> -----------------------------------------------
>
>          Key: AXIS2-879
>          URL: http://issues.apache.org/jira/browse/AXIS2-879
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: wsdl
>     Versions: 1.0
>  Environment: SDK 1.4.2  Tomcat5  WindowsXP
>     Reporter: Kinichiro Inoguchi
>  Attachments: TestService1.aar
>
> Using RPCMessageReceiver with method that returns array, 
> generated WSDL does not have minOccurs="0" and maxOccurs="unbounded".
> I created class that has methods return array, like this,
>     public int [] arrayInt(...)
>     public HelloBean[] arrayBean(...)
> Then I packed this to aar file and see WSDL with ?wsdl.
> It shows like this.
>     <xs:element name="arrayIntResponse">
>         <xs:complexType>
>             <xs:sequence>
>                 <xs:element type="xs:int" name="return"/>
>             </xs:sequence>
>         </xs:complexType>
>     </xs:element>
>     <xs:element name="arrayBeanResponse">
>         <xs:complexType>
>             <xs:sequence>
>                 <xs:element type="stn_1:HelloBean" name="return"/>
>             </xs:sequence>
>         </xs:complexType>
>     </xs:element>
> Those 2 Response definition should be have
> minOccurs="0" and maxOccurs="unbounded", like this.
>     <xs:element name="arrayIntResponse">
>         <xs:complexType>
>             <xs:sequence>
>                 <xs:element type="xs:int" name="return" minOccurs="0" and maxOccurs="unbounded"/>
>             </xs:sequence>
>         </xs:complexType>
>     </xs:element>
>     <xs:element name="arrayBeanResponse">
>         <xs:complexType>
>             <xs:sequence>
>                 <xs:element type="stn_1:HelloBean" name="return" minOccurs="0" and maxOccurs="unbounded"/>
>             </xs:sequence>
>         </xs:complexType>
>     </xs:element>
> I'll attach TestService1.aar that shows this issue.
> Thanks.

-- 
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-879) invalid generated WSDL for method returns array

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

    Resolution: Fixed

Fixed in current SVN

> invalid generated WSDL for method returns array
> -----------------------------------------------
>
>          Key: AXIS2-879
>          URL: http://issues.apache.org/jira/browse/AXIS2-879
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: wsdl
>     Versions: 1.0
>  Environment: SDK 1.4.2  Tomcat5  WindowsXP
>     Reporter: Kinichiro Inoguchi
>  Attachments: TestService1.aar
>
> Using RPCMessageReceiver with method that returns array, 
> generated WSDL does not have minOccurs="0" and maxOccurs="unbounded".
> I created class that has methods return array, like this,
>     public int [] arrayInt(...)
>     public HelloBean[] arrayBean(...)
> Then I packed this to aar file and see WSDL with ?wsdl.
> It shows like this.
>     <xs:element name="arrayIntResponse">
>         <xs:complexType>
>             <xs:sequence>
>                 <xs:element type="xs:int" name="return"/>
>             </xs:sequence>
>         </xs:complexType>
>     </xs:element>
>     <xs:element name="arrayBeanResponse">
>         <xs:complexType>
>             <xs:sequence>
>                 <xs:element type="stn_1:HelloBean" name="return"/>
>             </xs:sequence>
>         </xs:complexType>
>     </xs:element>
> Those 2 Response definition should be have
> minOccurs="0" and maxOccurs="unbounded", like this.
>     <xs:element name="arrayIntResponse">
>         <xs:complexType>
>             <xs:sequence>
>                 <xs:element type="xs:int" name="return" minOccurs="0" and maxOccurs="unbounded"/>
>             </xs:sequence>
>         </xs:complexType>
>     </xs:element>
>     <xs:element name="arrayBeanResponse">
>         <xs:complexType>
>             <xs:sequence>
>                 <xs:element type="stn_1:HelloBean" name="return" minOccurs="0" and maxOccurs="unbounded"/>
>             </xs:sequence>
>         </xs:complexType>
>     </xs:element>
> I'll attach TestService1.aar that shows this issue.
> Thanks.

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