The SoapObject is the response from a SOAP based web service.
I know it contains XML data because I tested the web service on www.soapclient.com.
Now, I want to use XMLPullParser to parse the response. XMLPullParser takes an InputStream, so is there a way to convert the SoapObject into an InputStream?
You may redefine envelope class by replacing parseBody method. Here is example of inheriting class:
Remember that parse method from SoapEnvelope require end tag of "Body", thats why there is condition in loop "while (!(eventType == XmlPullParser.END_TAG && parser.getName().equalsIgnoreCase("body")))". And ofcourse after getRequest and bodyIn will be null after that modification.
Second way is to parse reponseDump from HttpTransportSE but its a kind of terrorism ;)
kind regards Marcin