Search in sources :

Example 6 with PropertyInfo

use of org.ksoap2.serialization.PropertyInfo in project ETSMobile-Android2 by ApplETS.

the class SignetsMobileSoap method lireJoursRemplaces.

/**
	 * Liste des jours qui en remplacent d'autres, par exemple, les cours du
	 * lundi 8 octobre sont donn��s le mercredi 21 novembre.
	 */
public listeJoursRemplaces lireJoursRemplaces(final String pSession) throws Exception {
    return (listeJoursRemplaces) execute(new IWcfMethod() {

        @Override
        public ExtendedSoapSerializationEnvelope CreateSoapEnvelope() {
            ExtendedSoapSerializationEnvelope __envelope = createEnvelope();
            SoapObject __soapReq = new SoapObject("http://etsmtl.ca/", "lireJoursRemplaces");
            __envelope.setOutputSoapObject(__soapReq);
            PropertyInfo __info = null;
            __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 (listeJoursRemplaces) getResult(listeJoursRemplaces.class, __result, "lireJoursRemplacesResult", __envelope);
        }
    }, "http://etsmtl.ca/lireJoursRemplaces");
}
Also used : ca.etsmtl.applets.etsmobile.model.listeJoursRemplaces(ca.etsmtl.applets.etsmobile.model.listeJoursRemplaces) SoapObject(org.ksoap2.serialization.SoapObject) PropertyInfo(org.ksoap2.serialization.PropertyInfo)

Example 7 with PropertyInfo

use of org.ksoap2.serialization.PropertyInfo 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");
}
Also used : ca.etsmtl.applets.etsmobile.model.listeDesActivitesEtProf(ca.etsmtl.applets.etsmobile.model.listeDesActivitesEtProf) SoapObject(org.ksoap2.serialization.SoapObject) PropertyInfo(org.ksoap2.serialization.PropertyInfo)

Example 8 with PropertyInfo

use of org.ksoap2.serialization.PropertyInfo 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");
}
Also used : SoapObject(org.ksoap2.serialization.SoapObject) PropertyInfo(org.ksoap2.serialization.PropertyInfo) ListeDesElementsEvaluation(ca.etsmtl.applets.etsmobile.model.ListeDesElementsEvaluation)

Example 9 with PropertyInfo

use of org.ksoap2.serialization.PropertyInfo 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");
}
Also used : SoapObject(org.ksoap2.serialization.SoapObject) ca.etsmtl.applets.etsmobile.model.listeHoraireExamensFinaux(ca.etsmtl.applets.etsmobile.model.listeHoraireExamensFinaux) PropertyInfo(org.ksoap2.serialization.PropertyInfo)

Example 10 with PropertyInfo

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

Aggregations

PropertyInfo (org.ksoap2.serialization.PropertyInfo)23 SoapObject (org.ksoap2.serialization.SoapObject)22 SoapPrimitive (org.ksoap2.serialization.SoapPrimitive)4 ArrayOfFicheEmploye (ca.etsmtl.applets.etsmobile.model.ArrayOfFicheEmploye)2 ListeDeCours (ca.etsmtl.applets.etsmobile.model.ListeDeCours)2 ArrayOfFicheEmployeDate (ca.etsmtl.applets.etsmobile.model.ArrayOfFicheEmployeDate)1 ArrayOfService (ca.etsmtl.applets.etsmobile.model.ArrayOfService)1 Etudiant (ca.etsmtl.applets.etsmobile.model.Etudiant)1 FicheEmploye (ca.etsmtl.applets.etsmobile.model.FicheEmploye)1 ListeDeSessions (ca.etsmtl.applets.etsmobile.model.ListeDeSessions)1 ListeDesElementsEvaluation (ca.etsmtl.applets.etsmobile.model.ListeDesElementsEvaluation)1 ca.etsmtl.applets.etsmobile.model.listeCoursHoraire (ca.etsmtl.applets.etsmobile.model.listeCoursHoraire)1 ca.etsmtl.applets.etsmobile.model.listeDesActivitesEtProf (ca.etsmtl.applets.etsmobile.model.listeDesActivitesEtProf)1 ca.etsmtl.applets.etsmobile.model.listeDesCoequipiers (ca.etsmtl.applets.etsmobile.model.listeDesCoequipiers)1 ca.etsmtl.applets.etsmobile.model.listeDesProgrammes (ca.etsmtl.applets.etsmobile.model.listeDesProgrammes)1 ca.etsmtl.applets.etsmobile.model.listeHoraireExamensFinaux (ca.etsmtl.applets.etsmobile.model.listeHoraireExamensFinaux)1 ca.etsmtl.applets.etsmobile.model.listeJoursRemplaces (ca.etsmtl.applets.etsmobile.model.listeJoursRemplaces)1 ca.etsmtl.applets.etsmobile.model.listeSeances (ca.etsmtl.applets.etsmobile.model.listeSeances)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 Method (java.lang.reflect.Method)1