diff --git a/soap/ort.soap.php b/soap/ort.soap.php
index 89976a6c1..d732d2a4e 100755
--- a/soap/ort.soap.php
+++ b/soap/ort.soap.php
@@ -115,7 +115,7 @@ function getOrtFromKurzbz($ort_kurzbz, $authentifizierung)
INSERT INTO system.tbl_webservicerecht(berechtigung_kurzbz, methode, attribut) VALUES('soap/ort','getRaeume','reservieren');
INSERT INTO system.tbl_webservicerecht(berechtigung_kurzbz, methode, attribut) VALUES('soap/ort','getRaeume','stockwerk');
*/
-function getRaeume($authentifizierung)
+function getRaeume($raumtyp_kurzbz=null, $authentifizierung)
{
$user = $authentifizierung->username;
$passwort = $authentifizierung->passwort;
@@ -131,8 +131,8 @@ function getRaeume($authentifizierung)
// Daten für Lehrveranstaltung
$ort = new ort();
- if(!$ort->getAll())
- return new SoapFault("Server", "Error loading Data");
+ if(!$ort->getAll($raumtyp_kurzbz))
+ return new SoapFault("Server", "Error loading Data:".$ort->errormsg);
$return = array();
class foo{};
diff --git a/soap/ort.wsdl.php b/soap/ort.wsdl.php
index 8ce17e6f3..6b89e0d9d 100755
--- a/soap/ort.wsdl.php
+++ b/soap/ort.wsdl.php
@@ -49,6 +49,7 @@ echo "";
+
diff --git a/soap/soap_test_lv.php b/soap/soap_test_lv.php
index 142f06bdb..d8addedd3 100755
--- a/soap/soap_test_lv.php
+++ b/soap/soap_test_lv.php
@@ -148,8 +148,8 @@ if(!check_lektor($getuid))
{
var soapBody = new SOAPObject("getLehrveranstaltungFromId");
var authentifizierung = new SOAPObject("authentifizierung");
- authentifizierung.appendChild(new SOAPObject("username")).val("burkhart");
- authentifizierung.appendChild(new SOAPObject("passwort")).val("R3sid3nt");
+ authentifizierung.appendChild(new SOAPObject("username")).val("foo");
+ authentifizierung.appendChild(new SOAPObject("passwort")).val("bar");
soapBody.appendChild(new SOAPObject("lehrveranstaltung_id")).val("222");
soapBody.appendChild(new SOAPObject("semester")).val("");
diff --git a/soap/soap_test_ort.php b/soap/soap_test_ort.php
index 06be2795b..a7b569420 100755
--- a/soap/soap_test_ort.php
+++ b/soap/soap_test_ort.php
@@ -117,6 +117,10 @@ if(!check_lektor($getuid))
Passwort: |
|
+
+ | Raumtyp: |
+ |
+
|
@@ -141,13 +145,16 @@ if(!check_lektor($getuid))
{
user = document.getElementById("username").value;
passwort = document.getElementById("passwort").value;
+ raumtyp_kurzbz = document.getElementById("raumtyp_kurzbz").value;
var soapBody = new SOAPObject("getRaeume");
var authentifizierung = new SOAPObject("authentifizierung");
authentifizierung.appendChild(new SOAPObject("username")).val(user);
authentifizierung.appendChild(new SOAPObject("passwort")).val(passwort);
+ soapBody.appendChild(new SOAPObject("raumtyp_kurzbz")).val(raumtyp_kurzbz);
soapBody.appendChild(authentifizierung);
+
var sr = new SOAPRequest("getRaeume",soapBody);
SOAPClient.Proxy="'.APP_ROOT.'/soap/ort.soap.php?"+gettimestamp();
@@ -316,7 +323,8 @@ if(isset($_REQUEST['submit']) && $_GET['method']=='getRaeume')
$authentifizierung = new foo();
$authentifizierung->username=$_REQUEST['username'];
$authentifizierung->passwort=$_REQUEST['passwort'];
- $response = $client->getRaeume($authentifizierung);
+ $raumtyp_kurzbz=(isset($_REQUEST['raumtyp_kurzbz'])?$_REQUEST['raumtyp_kurzbz']:null);
+ $response = $client->getRaeume($raumtyp_kurzbz,$authentifizierung);
var_dump($response);
}
|