SoapSerializationEnvelope にプロパティを追加するために String[] を使用すると、エラーが返されます
SoapObject request = new SoapObject(NAMESPACE, METHOD_SendArray);
//Use this to add parameters
String[] a ={"21","22","23","66"};
long[] x= new long[] { };
request.addProperty("NumberList",a);
request.addProperty("ID",x);
//Declare the version of the SOAP request
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(request);
envelope.dotNet = true;
request body :
SendArray{NumberList=[Ljava.lang.String;@4052fa20; ID=[J@4052fb28; }
Error :
java.lang.RuntimeException: Cannot serialize: [Ljava.lang.String;@4052fa20