use of org.ksoap2.serialization.SoapObject in project ETSMobile-Android2 by ApplETS.
the class SignetsMobileSoap method listeHoraireEtProf.
/**
* Liste de activit��s (cours, TP, Lab, etc) avec leur horaire et leur
* local, ainsi que les enseignants
*/
public listeDesActivitesEtProf listeHoraireEtProf(final String codeAccesUniversel, final String motPasse, final String pSession) throws Exception {
return (listeDesActivitesEtProf) execute(new IWcfMethod() {
@Override
public ExtendedSoapSerializationEnvelope CreateSoapEnvelope() {
ExtendedSoapSerializationEnvelope __envelope = createEnvelope();
SoapObject __soapReq = new SoapObject("http://etsmtl.ca/", "listeHoraireEtProf");
__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);
__info = new PropertyInfo();
__info.namespace = "http://etsmtl.ca/";
__info.name = "pSession";
__info.type = PropertyInfo.STRING_CLASS;
__info.setValue(pSession);
__soapReq.addProperty(__info);
return __envelope;
}
@Override
public Object ProcessResult(ExtendedSoapSerializationEnvelope __envelope, SoapObject __result) throws Exception {
return (listeDesActivitesEtProf) getResult(listeDesActivitesEtProf.class, __result, "listeHoraireEtProfResult", __envelope);
}
}, "http://etsmtl.ca/listeHoraireEtProf");
}
use of org.ksoap2.serialization.SoapObject in project ETSMobile-Android2 by ApplETS.
the class SignetsMobileSoap method listeElementsEvaluation.
/**
* Liste des ��l��ments d'��valuation (devoirs, labos, examens, etc.) avec
* la note obtenue et les statisques, comme dans SIGNETS
*/
public ListeDesElementsEvaluation listeElementsEvaluation(final String codeAccesUniversel, final String motPasse, final String pSigle, final String pGroupe, final String pSession) throws Exception {
return (ListeDesElementsEvaluation) execute(new IWcfMethod() {
@Override
public ExtendedSoapSerializationEnvelope CreateSoapEnvelope() {
ExtendedSoapSerializationEnvelope __envelope = createEnvelope();
SoapObject __soapReq = new SoapObject("http://etsmtl.ca/", "listeElementsEvaluation");
__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);
__info = new PropertyInfo();
__info.namespace = "http://etsmtl.ca/";
__info.name = "pSigle";
__info.type = PropertyInfo.STRING_CLASS;
__info.setValue(pSigle);
__soapReq.addProperty(__info);
__info = new PropertyInfo();
__info.namespace = "http://etsmtl.ca/";
__info.name = "pGroupe";
__info.type = PropertyInfo.STRING_CLASS;
__info.setValue(pGroupe);
__soapReq.addProperty(__info);
__info = new PropertyInfo();
__info.namespace = "http://etsmtl.ca/";
__info.name = "pSession";
__info.type = PropertyInfo.STRING_CLASS;
__info.setValue(pSession);
__soapReq.addProperty(__info);
return __envelope;
}
@Override
public Object ProcessResult(ExtendedSoapSerializationEnvelope __envelope, SoapObject __result) throws Exception {
return (ListeDesElementsEvaluation) getResult(ListeDesElementsEvaluation.class, __result, "listeElementsEvaluationResult", __envelope);
}
}, "http://etsmtl.ca/listeElementsEvaluation");
}
use of org.ksoap2.serialization.SoapObject in project ETSMobile-Android2 by ApplETS.
the class SignetsMobileSoap method listeHoraireExamensFin.
public listeHoraireExamensFinaux listeHoraireExamensFin(final String codeAccesUniversel, final String motPasse, final String pSession) throws Exception {
return (listeHoraireExamensFinaux) execute(new IWcfMethod() {
@Override
public Object ProcessResult(ExtendedSoapSerializationEnvelope __envelope, SoapObject __result) throws Exception {
return (listeHoraireExamensFinaux) getResult(listeHoraireExamensFinaux.class, __result, "listeHoraireExamensFinResult", __envelope);
}
@Override
public ExtendedSoapSerializationEnvelope CreateSoapEnvelope() throws Exception {
ExtendedSoapSerializationEnvelope __envelope = createEnvelope();
SoapObject __soapReq = new SoapObject("http://etsmtl.ca/", "listeHoraireExamensFin");
__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);
__info = new PropertyInfo();
__info.namespace = "http://etsmtl.ca/";
__info.name = "pSession";
__info.type = PropertyInfo.STRING_CLASS;
__info.setValue(pSession);
__soapReq.addProperty(__info);
return __envelope;
}
}, "http://etsmtl.ca/listeHoraireExamensFin");
}
use of org.ksoap2.serialization.SoapObject in project ETSMobile-Android2 by ApplETS.
the class WebServiceSoap method getResult.
Object getResult(Class destObj, SoapObject source, String resultName, ExtendedSoapSerializationEnvelope __envelope) throws Exception {
if (source.hasProperty(resultName)) {
Object j = source.getProperty(resultName);
if (j == null) {
return null;
}
Object instance = __envelope.get(j, destObj);
return instance;
} else if (source.getName().equals(resultName)) {
Object instance = __envelope.get(source, destObj);
return instance;
}
return null;
}
use of org.ksoap2.serialization.SoapObject in project ETSMobile-Android2 by ApplETS.
the class WebServiceSoap method GetFiche.
public String GetFiche(final String numero, final String PathFiche) throws Exception {
return (String) execute(new IWcfMethod() {
@Override
public ExtendedSoapSerializationEnvelope CreateSoapEnvelope() {
ExtendedSoapSerializationEnvelope __envelope = createEnvelope();
SoapObject __soapReq = new SoapObject("http://etsmtl.ca/", "GetFiche");
__envelope.setOutputSoapObject(__soapReq);
PropertyInfo __info = null;
__info = new PropertyInfo();
__info.namespace = "http://etsmtl.ca/";
__info.name = "numero";
__info.type = PropertyInfo.STRING_CLASS;
__info.setValue(numero);
__soapReq.addProperty(__info);
__info = new PropertyInfo();
__info.namespace = "http://etsmtl.ca/";
__info.name = "PathFiche";
__info.type = PropertyInfo.STRING_CLASS;
__info.setValue(PathFiche);
__soapReq.addProperty(__info);
return __envelope;
}
@Override
public Object ProcessResult(ExtendedSoapSerializationEnvelope __envelope, SoapObject __result) throws Exception {
Object obj = __result.getProperty("GetFicheResult");
if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
SoapPrimitive j = (SoapPrimitive) __result.getProperty("GetFicheResult");
return j.toString();
}
return null;
}
}, "http://etsmtl.ca/GetFiche");
}
Aggregations