and */ /** * Test Client fuer Ort 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']:'getOrtFromKurzbz'); $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 Orte

Ort/Raum WebService

Webservice für die Abfrage der Rauminformationen

Funktionen

Show WSDL

Testformular

Username* :
Passwort* :
Ort_Kurzbz* :
'; } elseif($method=='getRaeume') { echo'
Username* :
Passwort* :
Raumtyp:
'; echo ' '; } elseif($method=='searchRaum') { echo'
Datum*:
Zeit-Von*:
Zeit-Bis*:
Raumtyp:
Anzahl Personen:
Reservierung*: convert_html_chars((isset($_REQUEST['reservierung']) ? 'checked' : "")).'>
Username* :
Passwort* :
'; echo ' '; } echo 'Zurück zur Übersicht
'; echo '
'; class foo {}; if(isset($_REQUEST['submit']) && $_GET['method']=='getOrtFromKurzbz') { $client = new SoapClient(APP_ROOT."/soap/ort.wsdl.php?".microtime(true)); try { $authentifizierung = new foo(); $authentifizierung->username=$_REQUEST['username']; $authentifizierung->passwort=$_REQUEST['passwort']; $response = $client->getOrtFromKurzbz($_REQUEST['ort_kurzbz'], $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']=='getRaeume') { $client = new SoapClient(APP_ROOT."/soap/ort.wsdl.php?".microtime(true)); try { $authentifizierung = new foo(); $authentifizierung->username=$_REQUEST['username']; $authentifizierung->passwort=$_REQUEST['passwort']; $raumtyp_kurzbz=(isset($_REQUEST['raumtyp_kurzbz'])?$_REQUEST['raumtyp_kurzbz']:null); $response = $client->getRaeume($raumtyp_kurzbz,$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']=='searchRaum') { $client = new SoapClient(APP_ROOT."/soap/ort.wsdl.php?".microtime(true)); try { $authentifizierung = new foo(); $authentifizierung->username=$_REQUEST['username']; $authentifizierung->passwort=$_REQUEST['passwort']; $response = $client->searchRaum($_REQUEST['datum'],$_REQUEST['zeit_von'],$_REQUEST['zeit_bis'],$_REQUEST['raumtyp'],$_REQUEST['anzahl_personen'],isset($_REQUEST['reservierung']),$authentifizierung); var_dump($response); } catch(SoapFault $fault) { echo "SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR; } } echo '
'; ?>