如何将arraylist从android发送到asp.net webservice

时间:2013-01-11 09:45:35

标签: android ksoap2

           SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);

        request.addProperty("birthday", dateString);
        SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
                SoapEnvelope.VER11);
        envelope.dotNet=true;
        envelope.setOutputSoapObject(request);
        HttpTransportSE androidhttpTranport = new HttpTransportSE(URL);

我发送一个param类型为request.addProperty("birthday", dateString);的字符串 如何发送Arraylist<Object>

1 个答案:

答案 0 :(得分:2)

这取决于您的Web服务,如果您有一个对象或基元数组,您可以构建循环迭代并添加到SoapObject中。检查this one