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 "Alexander Saveliev (JIRA)" <ji...@apache.org> on 2008/01/24 16:52:39 UTC

[jira] Created: (AXIS2-3474) Problem with multidimensional arrays

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


[jira] Commented: (AXIS2-3474) Problem with multidimensional arrays

Posted by "Jørgen Nørgaard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607521#action_12607521 ] 

Jørgen Nørgaard commented on AXIS2-3474:
----------------------------------------

Present in version 1.4 also

> 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


[jira] Commented: (AXIS2-3474) Problem with multidimensional arrays

Posted by "Detelin Yordanov (JIRA)" <ji...@apache.org>.
    [ 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