Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android ksoap call xmlpullparser exception

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. :(

like image 457
JabezMMM Avatar asked Nov 04 '22 21:11

JabezMMM


2 Answers

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.

like image 176
JabezMMM Avatar answered Nov 11 '22 11:11

JabezMMM


Try using another version of the library. Switching the version from 2.6.5 to 2.6.4 solved the problem for me.

like image 40
mostar Avatar answered Nov 11 '22 11:11

mostar