use of org.ksoap2.serialization.PropertyInfo in project ETSMobile-Android2 by ApplETS.
the class SignetsMobileSoap method echo.
public String echo(final String chaine) throws Exception {
return (String) execute(new IWcfMethod() {
@Override
public ExtendedSoapSerializationEnvelope CreateSoapEnvelope() {
ExtendedSoapSerializationEnvelope __envelope = createEnvelope();
SoapObject __soapReq = new SoapObject("http://etsmtl.ca/", "echo");
__envelope.setOutputSoapObject(__soapReq);
PropertyInfo __info = null;
__info = new PropertyInfo();
__info.namespace = "http://etsmtl.ca/";
__info.name = "chaine";
__info.type = PropertyInfo.STRING_CLASS;
__info.setValue(chaine);
__soapReq.addProperty(__info);
return __envelope;
}
@Override
public Object ProcessResult(ExtendedSoapSerializationEnvelope __envelope, SoapObject __result) throws Exception {
Object obj = __result.getProperty("echoResult");
if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
SoapPrimitive j = (SoapPrimitive) __result.getProperty("echoResult");
return j.toString();
}
return null;
}
}, "http://etsmtl.ca/echo");
}
use of org.ksoap2.serialization.PropertyInfo 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");
}
use of org.ksoap2.serialization.PropertyInfo in project ETSMobile-Android2 by ApplETS.
the class SignetsMobileSoap method infoEtudiant.
/**
* Information de base sur l'��tudiant: nom, pr��nom, code permanent, solde
*/
public Etudiant infoEtudiant(final String codeAccesUniversel, final String motPasse) throws Exception {
return (Etudiant) execute(new IWcfMethod() {
@Override
public ExtendedSoapSerializationEnvelope CreateSoapEnvelope() {
ExtendedSoapSerializationEnvelope __envelope = createEnvelope();
SoapObject __soapReq = new SoapObject("http://etsmtl.ca/", "infoEtudiant");
__envelope.setOutputSoapObject(__soapReq);
PropertyInfo __info = null;
__info = new PropertyInfo();
__info.namespace = "http://etsmtl.ca/";
__info.name = "codeAccesUniversel";
__info.type = PropertyInfo.STRING_CLASS;
__info.setValue(codeAccesUniversel);
__soapReq.addProperty(__info);
__info = new PropertyInfo();
__info.namespace = "http://etsmtl.ca/";
__info.name = "motPasse";
__info.type = PropertyInfo.STRING_CLASS;
__info.setValue(motPasse);
__soapReq.addProperty(__info);
return __envelope;
}
@Override
public Object ProcessResult(ExtendedSoapSerializationEnvelope __envelope, SoapObject __result) throws Exception {
return (Etudiant) getResult(Etudiant.class, __result, "infoEtudiantResult", __envelope);
}
}, "http://etsmtl.ca/infoEtudiant");
}
use of org.ksoap2.serialization.PropertyInfo in project ETSMobile-Android2 by ApplETS.
the class WebServiceSoap method GetFicheData.
public FicheEmploye GetFicheData(final String Id) throws Exception {
return (FicheEmploye) execute(new IWcfMethod() {
@Override
public ExtendedSoapSerializationEnvelope CreateSoapEnvelope() {
ExtendedSoapSerializationEnvelope __envelope = createEnvelope();
SoapObject __soapReq = new SoapObject("http://etsmtl.ca/", "GetFicheData");
__envelope.setOutputSoapObject(__soapReq);
PropertyInfo __info = null;
__info = new PropertyInfo();
__info.namespace = "http://etsmtl.ca/";
__info.name = "Id";
__info.type = PropertyInfo.STRING_CLASS;
__info.setValue(Id);
__soapReq.addProperty(__info);
return __envelope;
}
@Override
public Object ProcessResult(ExtendedSoapSerializationEnvelope __envelope, SoapObject __result) throws Exception {
return (FicheEmploye) getResult(FicheEmploye.class, __result, "GetFicheDataResult", __envelope);
}
}, "http://etsmtl.ca/GetFicheData");
}
Aggregations