kSOAP2 output / org.xmlpull.v1.xmlpullparserexception expected start_tag

Yogurt picture Yogurt · Dec 9, 2010 · Viewed 16.4k times · Source

I have a standard code to call a .net webservice

I get exception "org.xmlpull.v1.xmlpullparserexception expected start_tag" at line

transportSE.call(SOAP_ACTION,soapSerializationEnvelope);

However, if i call the same webservice from a .NET code i get a well structured proper output as desired.

It primarily seems that from kSOAP2, there is a definite output that it gets but when it goes to parse further w.r.t SoapPrimitive objects, it fails.

So, is there other way to look at the actual output (actual soap envelope) received and then may be parse it myself appropriately.

Answer

KCD picture KCD · Apr 7, 2011

I'm investigating a similar problem I'm having. Stumbled across this comment

When I use SoapEnvelope.VER11, it works fine, But when I use SoapEnvelope.VER12, it gives me error: "org.xmlpull.v1.XmlPullParserException: expected: START_TAG".

http://groups.google.com/group/android-developers/browse_thread/thread/b585862b6e939fd2

Perhaps we are having compatibility issues regarding the soap version. Also connecting to a dot net service you may need to set envelope.dotNet = true; .. but you've probably done that