diff --git a/soap/soap_test_student.php b/soap/soap_test_student.php new file mode 100755 index 000000000..cc99395eb --- /dev/null +++ b/soap/soap_test_student.php @@ -0,0 +1,339 @@ +. + */ + +require_once('../config/vilesci.config.inc.php'); +require_once('../include/functions.inc.php'); + +$method = (isset($_GET['method'])?$_GET['method']:'uid'); + +$getuid = get_uid(); +if(!check_lektor($getuid)) + die('Sie haben keine Berechtigung für diese Seite'); +?> + + + + + + + SOAP TestClient für Studenten + + + GetLehrveranstaltungFromUid
+ GetLehrveranstaltungFromMatrikelnummer
+ GetLehrveranstaltungFromStudiengang

+ Show WSDL

+ + + + + + + + + + + + + + + + + + +
Name* :
Passwort* :
Student_uid* :
+ + +
+ + + '; + + } + else if($method =='matrikelnummer') + { + echo' +
+ + + + + + + + + + + + + + + + + +
Name* :
Passwort* :
Matrikelnummer* :
+ + +
+
+ + '; + + } + else if($method == 'studiengang') + { + echo' +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Name* :
Passwort* :
Studiengang* :
Ausbildungssemester :
Verband :
Gruppe :
+ + +
+
+ + '; + } + +if(isset($_REQUEST['submit_matrikelnummer'])) +{ + $client = new SoapClient(APP_ROOT."soap/student.wsdl.php?".microtime(true)); + + try + { + $authentifizierung = new foo(); + $authentifizierung->username=$_REQUEST['username']; + $authentifizierung->passwort=$_REQUEST['passwort']; + $response = $client->getStudentFromMatrikelnummer($matrikelnummer = $_REQUEST['matrikelnummer'], $authentifizierung); + + var_dump($response); + } + catch(SoapFault $fault) + { + echo "SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR; + } +} + +if(isset($_REQUEST['submit_uid'])) +{ + $client = new SoapClient(APP_ROOT."soap/student.wsdl.php?".microtime(true)); + + try + { + $authentifizierung = new foo(); + $authentifizierung->username=$_REQUEST['username']; + $authentifizierung->passwort=$_REQUEST['passwort']; + $response = $client->getStudentFromUid($student_uid = $_REQUEST['student_uid'], $authentifizierung); + + var_dump($response); + } + catch(SoapFault $fault) + { + echo "SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR; + } + +} + +if(isset($_REQUEST['submit_studiengang'])) +{ + $client = new SoapClient(APP_ROOT."soap/student.wsdl.php?".microtime(true)); + + try + { + $authentifizierung = new foo(); + $authentifizierung->username=$_REQUEST['username']; + $authentifizierung->passwort=$_REQUEST['passwort']; + $response = $client->getStudentFromStudiengang($studiengang = $_REQUEST['studiengang'], $semester=$_REQUEST['semester'], $verband=$_REQUEST['verband'], $gruppe=$_REQUEST['gruppe'], $authentifizierung); + + var_dump($response); + } + catch(SoapFault $fault) + { + echo "SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR; + } +} + +class foo{} + ?>