axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-3474) Problem with multidimensional arrays
Date Sat, 25 Dec 2010 15:38:46 GMT

     [ 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


Mime
View raw message