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 '</div>';