use of org.ksoap2.serialization.SoapPrimitive in project ETSMobile-Android2 by ApplETS.
the class SignetsMobileSoap method HelloWorld.
public String HelloWorld() throws Exception {
return (String) execute(new IWcfMethod() {
@Override
public ExtendedSoapSerializationEnvelope CreateSoapEnvelope() {
ExtendedSoapSerializationEnvelope __envelope = createEnvelope();
SoapObject __soapReq = new SoapObject("http://etsmtl.ca/", "HelloWorld");
__envelope.setOutputSoapObject(__soapReq);
PropertyInfo __info = null;
return __envelope;
}
@Override
public Object ProcessResult(ExtendedSoapSerializationEnvelope __envelope, SoapObject __result) throws Exception {
Object obj = __result.getProperty("HelloWorldResult");
if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
SoapPrimitive j = (SoapPrimitive) __result.getProperty("HelloWorldResult");
return j.toString();
}
return null;
}
}, "http://etsmtl.ca/HelloWorld");
}
Aggregations