kSOAP2 double ID exception

前端 未结 2 749
情深已故
情深已故 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

提交回复
热议问题