[ http://issues.apache.org/jira/browse/AXIS2-1227?page=all ]
Davanum Srinivas updated AXIS2-1227:
------------------------------------
Summary: [RPC] Deserializing a array parameter is invalid (was:
Deserializing a array parameter is invalid)
> [RPC] Deserializing a array parameter is invalid
> ------------------------------------------------
>
> Key: AXIS2-1227
> URL: http://issues.apache.org/jira/browse/AXIS2-1227
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: Addressing
> Affects Versions: 1.1
> Reporter: takanori
>
> When I use RPCMessageReciver, fail to deserializie a array parameter.
> Service
> -----------------------------------------------------------------------------------
> public SampleDto echo(SampleDto dto) {
> // do something.
> }
> -----------------------------------------------------------------------------------
> SampleDto
> -----------------------------------------------------------------------------------
> public class SampleDto {
> private String strParam = "echo";
> private short shortParam = 1;
> private int intParam = 2;
> private long longParam = 3L;
> private float floatParam = 1.0f;
> private double doubleParam = 1.1;
> private boolean boolParam = true;
> private String[] stringArray = null;
> // setter/getter
> }
> -----------------------------------------------------------------------------------
> If I send the array ["a", "b", "c"](stringArray ),
> it is deserializied to [true, 1.1, 1.0, 2, 3, 1, "echo", "a", "b", "c"].
> Sending data is:
> -----------------------------------------------------------------------------------
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Header />
> <soapenv:Body>
> <ns:echo xmlns:ns="http://examples/xsd">
> <arg0>
> <boolParam>true</boolParam>
> <doubleParam>1.1</doubleParam>
> <floatParam>1.0</floatParam>
> <intParam>2</intParam>
> <longParam>3</longParam>
> <shortParam>1</shortParam>
> <strParam>echo</strParam>
>
> <stringArray>a</stringArray><stringArray>b</stringArray><stringArray>c</stringArray>
> </arg0>
> </ns:echo>
> </soapenv:Body>
> </soapenv:Envelope>
> -----------------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]