axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Detelin Yordanov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-3474) Problem with multidimensional arrays
Date Mon, 11 Aug 2008 11:41:45 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-3474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12621415#action_12621415
] 

Detelin Yordanov commented on AXIS2-3474:
-----------------------------------------

I think there is no multidimensional array support in Axis2 (even in 1.4). It seems that there
is no code that checks for that and throws an according exception (e.g. "multidimensional
array types not supported").

> Problem with multidimensional arrays
> ------------------------------------
>
>                 Key: AXIS2-3474
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3474
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen, wsdl
>    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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message