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 "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2010/12/25 16:38:46 UTC
[jira] Resolved: (AXIS2-3474) Problem with multidimensional arrays
[ https://issues.apache.org/jira/browse/AXIS2-3474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amila Chinthaka Suriarachchi resolved AXIS2-3474.
-------------------------------------------------
Resolution: Fixed
fixed this issue already. Current axis2 trunk supports multi dimensional arrays.
> Problem with multidimensional arrays
> ------------------------------------
>
> Key: AXIS2-3474
> URL: https://issues.apache.org/jira/browse/AXIS2-3474
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.3
> Reporter: Alexander Saveliev
>
> If we have service like:
> public class test
> {
> public String[][] method(String params[][])
> {
> return params;
> }
> }
> then java2wsdl (or /services/test?wsdl) loses array dimensions:
> <xs:element name="method">
> <xs:complexType>
> <xs:sequence>
> <xs:element maxOccurs="unbounded" minOccurs="0" name="param0" nillable="true" type="xs:string"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="methodResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element maxOccurs="unbounded" minOccurs="0" name="return" nillable="true" type="xs:string"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> and then files generated by wsdl2java contain:
> public class Method implements org.apache.axis2.databinding.ADBBean {
> public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://ws.apache.org/axis2",
> "method", "ns1");
> /**
> * field for Param0
> * This was an Array!
> */
> protected java.lang.String[] localParam0;
> ......
> and
> public class MethodResponse implements org.apache.axis2.databinding.ADBBean {
> public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName("http://ws.apache.org/axis2",
> "methodResponse", "ns1");
> /**
> * field for _return
> * This was an Array!
> */
> protected java.lang.String[] local_return;
> ....
> -> two-dimensional array becomes one-dimensional
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org