kSOAP2 double ID exception

前端 未结 2 743
情深已故
情深已故 2020-12-21 20:54

I am attempting to use kSOAP 2 in my android application, and when I try to perform a particular webservice request, I end up getting thrown a \"double ID\" exception. I wa

相关标签:
2条回答
  • 2020-12-21 21:14

    well, I had the same problem too, but I had no diffgr:before in the xml response (And I can't change the webservice at all). Anyway, the problem was due to some empty values in the response. Using XOM I managed to remove all empty elements and the it worked like charm. This is done by converting the response to string, loading it into nu.xom.Document element, remove the empty elements from the document and revert it back to InputStream for parsing with ksoap2

    0 讨论(0)
  • 2020-12-21 21:21

    I was able to resolve this by removing the diffgr:before element the webservice was sending. I did that thanks to this post

    0 讨论(0)
提交回复
热议问题