I have used ksoap2 to call my SOAP service. It works fine in android2.2, but when the same code runs in android2.3.3 onwards it throws an exception in the following line.
http_transport_se.call(SOAP_ACTION, envelope);
The exception thrown, as follows.
org.xmlpull.v1.XmlPullParserException: unexpected type (position:TEXT �������������[ێG...@1:255 in java.io.InputStreamReader@4057acc8)
Note that no parameters are needed to call this method. Please help. :(
I could not solve this problem, ksoap2 API have issues running in multiple platforms. So I have implemented the SOAP service without using any API and went Native.
This link helped me make a call to my web service. And here you can find how your SOAP request/response looks.
Try using another version of the library. Switching the version from 2.6.5 to 2.6.4 solved the problem for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With