use of org.ksoap2.SoapFault in project ETSMobile-Android2 by ApplETS.
the class SignetsMobileSoap method execute.
protected Object execute(IWcfMethod wcfMethod, String methodName) throws java.lang.Exception {
org.ksoap2.transport.Transport __httpTransport = createTransport();
ExtendedSoapSerializationEnvelope __envelope = wcfMethod.CreateSoapEnvelope();
sendRequest(methodName, __envelope, __httpTransport);
Object __retObj = __envelope.bodyIn;
if (__retObj instanceof SoapFault) {
SoapFault __fault = (SoapFault) __retObj;
throw convertToException(__fault, __envelope);
} else {
SoapObject __result = (SoapObject) __retObj;
return wcfMethod.ProcessResult(__envelope, __result);
}
}
use of org.ksoap2.SoapFault in project ETSMobile-Android2 by ApplETS.
the class WebServiceSoap method execute.
protected Object execute(IWcfMethod wcfMethod, String methodName) throws Exception {
org.ksoap2.transport.Transport __httpTransport = createTransport();
ExtendedSoapSerializationEnvelope __envelope = wcfMethod.CreateSoapEnvelope();
sendRequest(methodName, __envelope, __httpTransport);
Object __retObj = __envelope.bodyIn;
if (__retObj instanceof org.ksoap2.SoapFault) {
org.ksoap2.SoapFault __fault = (org.ksoap2.SoapFault) __retObj;
throw convertToException(__fault, __envelope);
} else {
SoapObject __result = (SoapObject) __retObj;
return wcfMethod.ProcessResult(__envelope, __result);
}
}
Aggregations