Same problem here:
    org.xmlpull.v1.XmlPullParserException: unexpected type
(position:END_DOCUMENT n...@1:0 in java.io.inputstreamrea...@4413ee)

I wonder if you managed to solve it. If not, have you tried checking
the xml soap request that is sent out of your client?
I'm using
    androidHttpTransport.debug = true;
    System.out.println ( androidHttpTransport.requestDump );
to examine the xml code that is generated bu ksoap2.

The strange thing is that I can successfully invoke other operations
of my ws, while it seems that this request can't even be "assembled"
by the parser.
I've also noticed that changing versione from 1.1 to 1.2 the exception
thrown is different, and it refers to the START_TAG.

More to come (hopefully) in the near future...
Cheers,

Claudio

On 29 Set, 20:49, 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to