Hi, I've got exactly the same problem...
I'm using ksoap2 and I do manage to call some methods of my ws, but
the parser keeps popping the same error when it tries to process a
specific soap message:
W/System.err( 2313): org.xmlpull.v1.XmlPullParserException: unexpected
type (position:END_DOCUMENT n...@1:0 in
java.io.inputstreamrea...@435f9ee8)
What leaves me astonished is that if I print the xml of the generated
soap, it is ok!
By the way, don't know if this can help, but I've been using
androidHttpTransport.debug = true;
System.out.println("request: " + androidHttpTransport.requestDump);
to see the xml generated.
Also, I've noticed that changing soap version from 1.1 to 1.2 I get a
different error, this time concerning the START_TAG.
Hope this was somehow useful...
Please let me know if you find a solution for this issue.
Thank you,
Claudio
PS: I've noticed that a lot of users are facing similiar problems.
Lots of posts, but as far as I'm concerned no "ultimate" solution till
now...
On Sep 29, 8:49 pm, Gareth <[email protected]> wrote:
> I've written a webservice client which usesksoap2. When I run a test
> program from outside of Android everything works without a problem,
> however when I issue the SOAP requests from within Android then every
> 2nd request seems to fail, throwing the following error (copied from
> the Dalvik Debug Monitor):
> 09-29 18:35:22.116: ERROR/class com.garethwestern.android.SoapTest
> (790): unexpected type (position:END_DOCUMENT n...@1:0 in
> java.io.inputstreamrea...@437e73a8)
>
> When I step through the code from within the IDE everything seems to
> run ok untilksoap2tries to parse the response, at which point the
> aforementioned error is thrown because the HTTP response is empty.
>
> Unfortunately the webservice is over HTTPS so I am unable to easily
> use something like fiddler or wireshark to check the exact responses
> and requests, but as mentioned it works without a problem outside
> Android, and every 2nd request without fail from within.
>
> Does anyone have any suggestions as to how I can debug this further?
>
> Thanks,
>
> Gareth
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---