.
*/
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
';
}
else if($method =='matrikelnummer')
{
echo'
';
}
else if($method == 'studiengang')
{
echo'
';
}
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{}
?>