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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]