Search in sources :

Example 1 with SoapFault

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);
    }
}
Also used : SoapFault(org.ksoap2.SoapFault) SoapObject(org.ksoap2.serialization.SoapObject) SoapObject(org.ksoap2.serialization.SoapObject)

Example 2 with SoapFault

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);
    }
}
Also used : SoapObject(org.ksoap2.serialization.SoapObject) SoapObject(org.ksoap2.serialization.SoapObject)

Aggregations

SoapObject (org.ksoap2.serialization.SoapObject)2 SoapFault (org.ksoap2.SoapFault)1