You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SoapSerializationEnvelope envelope = new
SoapSerializationEnvelope(SoapEnvelope.VER10);
envelope.bodyOut = rpc;
envelope.dotNet = true;
envelope.setOutputSoapObject(rpc);
HttpTransportSE transport = new HttpTransportSE(URL);
try {
transport.call(soapAction, envelope);
} catch (Exception e) {
e.printStackTrace();
}
SoapObject object = (SoapObject) envelope.bodyIn;
the error is in the last sentence:
AndroidRuntime(16615): java.lang.ClassCastException: org.ksoap2.SoapFault
cannot be cast to org.ksoap2.serialization.SoapObject
how to solve it ? please.
btw, i use ksoap2-android V3.1.0
Original issue reported on code.google.com by [email protected] on 20 Nov 2013 at 1:59
The text was updated successfully, but these errors were encountered:
I think the service is returning an exception. You must cast to SoapFault to
see the error
if (envelope.bodyIn instanceof SoapFault)
{
final SoapFault sf = (SoapFault) envelope.bodyIn;
... // Stuff
}
Original issue reported on code.google.com by
[email protected]
on 20 Nov 2013 at 1:59The text was updated successfully, but these errors were encountered: