.
*/
/**
* Test Client für Studierenden Webservice
*/
require_once('../config/vilesci.config.inc.php');
require_once('../include/functions.inc.php');
require_once('../include/basis_db.class.php');
$method = (isset($_GET['method'])?$_GET['method']:'uid');
$getuid = get_uid();
if(!check_lektor($getuid) && !check_student($getuid))
die('Sie haben keine Berechtigung für diese Seite');
$db = new basis_db();
?>
SOAP TestClient für Studenten
Studierenden Webservice
Liefert Informationen ueber Studierende
Funktionen
Show WSDL
Testformular
';
}
else if($method =='matrikelnummer')
{
echo'
';
}
else if($method == 'studiengang')
{
echo'
';
}
echo 'Zurück zur Übersicht ';
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{}
?>