*/
/**
* Test Client fuer LVPlan 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']:'getLVPlanFromUser');
$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 LVPlan
LVPlan WebService
Webservice für die Abfrage des LVPlans
Funktionen
Show WSDL
Testformular
';
echo '
';
}
elseif($method=='getLVPlanFromLV')
{
echo'
';
echo '
';
}
elseif($method=='getLVPlanFromStg')
{
echo'
';
echo '
';
}
elseif($method=='getLVPlanFromOrt')
{
echo'
';
echo '
';
}
echo 'Zurück zur Übersicht
';
echo '';
class foo {};
if(isset($_REQUEST['submit']) && $_GET['method']=='getLVPlanFromUser')
{
$client = new SoapClient(APP_ROOT."/soap/lvplan.wsdl.php?".microtime(true));
try
{
$authentifizierung = new foo();
$authentifizierung->username=$_REQUEST['username'];
$authentifizierung->passwort=$_REQUEST['passwort'];
$response = $client->getLVPlanFromUser($_REQUEST['uid'], $_REQUEST['von'], $_REQUEST['bis'], $authentifizierung);
var_dump($response);
}
catch(SoapFault $fault)
{
echo "SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR;
}
}
if(isset($_REQUEST['submit']) && $_GET['method']=='getLVPlanFromLV')
{
$client = new SoapClient(APP_ROOT."/soap/lvplan.wsdl.php?".microtime(true));
try
{
$authentifizierung = new foo();
$authentifizierung->username=$_REQUEST['username'];
$authentifizierung->passwort=$_REQUEST['passwort'];
$response = $client->getLVPLanFromLV($_REQUEST['lehrveranstaltung_id'], $_REQUEST['stsem'], $authentifizierung);
var_dump($response);
}
catch(SoapFault $fault)
{
echo "SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR;
}
}
if(isset($_REQUEST['submit']) && $_GET['method']=='getLVPlanFromStg')
{
$client = new SoapClient(APP_ROOT."/soap/lvplan.wsdl.php?".microtime(true));
try
{
$authentifizierung = new foo();
$authentifizierung->username=$_REQUEST['username'];
$authentifizierung->passwort=$_REQUEST['passwort'];
$studiengang_kz = $_REQUEST['studiengang_kz'];
$semester = $_REQUEST['semester'];
$verband = $_REQUEST['verband'];
$gruppe = $_REQUEST['gruppe'];
$gruppe_kurzbz = $_REQUEST['gruppe_kurzbz'];
$von = $_REQUEST['von'];
$bis = $_REQUEST['bis'];
$response = $client->getLVPlanFromStg($studiengang_kz, $semester, $verband, $gruppe, $gruppe_kurzbz, $von, $bis,$authentifizierung);
var_dump($response);
}
catch(SoapFault $fault)
{
echo "SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR;
}
}
if(isset($_REQUEST['submit']) && $_GET['method']=='getLVPlanFromOrt')
{
$client = new SoapClient(APP_ROOT."/soap/lvplan.wsdl.php?".microtime(true));
try
{
$authentifizierung = new foo();
$authentifizierung->username=$_REQUEST['username'];
$authentifizierung->passwort=$_REQUEST['passwort'];
$response = $client->getLVPLanFromOrt($_REQUEST['ort_kurzbz'], $_REQUEST['von'], $_REQUEST['bis'], $authentifizierung);
var_dump($response);
}
catch(SoapFault $fault)
{
echo "SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR;
}
}
echo '
';
?>