question

UlasKAYALAR avatar image
0 Votes"
UlasKAYALAR asked JiayaoWu-MSFT commented

SOAP with Java (Android): org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG <html>@2:7 in java.io.InputStreamReader@59f99f5)

When I test SOAP with HTTP GET/POST it works fine. There is no problem locally or on the web. But I am getting this error on android/java side with Soap11. Could you help? Even if you don't know Java, you can show the way with your SOAP experience.

I/System.out: [socket] e:java.lang.ClassNotFoundException: com.mediatek.cta.CtaUtils
W/System.err: org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG <html>@2:7 in java.io.InputStreamReader@59f99f5)
W/System.err: at org.kxml2.io.KXmlParser.exception(KXmlParser.java:242)
W/System.err: at org.kxml2.io.KXmlParser.require(KXmlParser.java:1384)
W/System.err: at org.ksoap2.SoapEnvelope.parse(SoapEnvelope.java:127)
W/System.err: at org.ksoap2.transport.Transport.parseResponse(Transport.java:63)
W/System.err: at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:100)
W/System.err: at com.medcongozetim.app.YLogin$LoginAsyncTask.doInBackground(YLogin.java:87)
W/System.err: at com.medcongozetim.app.YLogin$LoginAsyncTask.doInBackground(YLogin.java:56)
W/System.err: at android.os.AsyncTask$3.call(AsyncTask.java:378)
W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/System.err: at java.lang.Thread.run(Thread.java:919)

windows-wcf
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @UlasKAYALAR ,
The exception is 'class not found', you may follow the steps to troubleshoot this exception:

  1. Check the configuration of your environment variable classpath to see if the required supporting libraries are in the classpath.

  2. Whether duplicate library versions are used and the earlier version is used preferentially.

  3. Whether the class name is incorrect.

  4. No pure Java driver package was imported.


0 Votes 0 ·

I don't think the problem comes from there. The part you're talking about isn't in the error, it's probably a information. The main error is the one I mentioned in the title.

0 Votes 0 ·

Hi @UlasKAYALAR ,
Here is a link to see if it can solve your problem : org-xmlpull-v1-xmlpullparserexception-expected-start-tag-http-schemas-xmlso.


0 Votes 0 ·

0 Answers