Ksoap2 Double Id Exception
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 was able to
Solution 1:
I was able to resolve this by removing the diffgr:before
element the webservice was sending. I did that thanks to this post
Solution 2:
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
Post a Comment for "Ksoap2 Double Id Exception"