axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Saveliev (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-3474) Problem with multidimensional arrays
Date Thu, 24 Jan 2008 15:52:39 GMT
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