Serialize an array of ints to send using KSOAP2

后端 未结 7 1421
借酒劲吻你
借酒劲吻你 2021-01-06 01:41

I\'m having a problem trying to send an array of ints to a .NET web service which expects an array in one of the arguments. That\'s at least what I understand from the API d

相关标签:
7条回答
  • 2021-01-06 02:25

    Thanks Mindaugas. A slight edit to your answer worked for me:

    SoapObject soapObj = new SoapObject(namespace, "ImageId");
            for (Integer i : image_id){
                soapObj.addProperty("int", i);
            }
            request_login.addProperty("ImageId", soapObj);
    
    0 讨论(0)
提交回复
热议问题