How to parse a complex SOAP response in Android

前端 未结 4 691
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-07 03:00

Since two days I am trying to consume a WCF (.NET) Soap Service and serialize it\'s response without success. I am getting a correct response (I had to put it on pastebin: S

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-07 03:44

    With ksoap2 you can set the envelope debugging to true and then get the response dump, which will contain the full xml.

    However what makes you think that the SoapObject returned is unreadable. Check it out in a debugger and you will find that everything is there and you can just parse it out using getProperty("propname") and getAttribute("attribute) which in turn are either SoapObjects again if they are nested or contain actual values if they are leaf nodes.

    Check out some of the links on the wiki to http://code.google.com/p/ksoap2-android/

提交回复
热议问题