diff --git a/soap/stip.soap.php b/soap/stip.soap.php
index fe1eddf52..7e0991d6c 100644
--- a/soap/stip.soap.php
+++ b/soap/stip.soap.php
@@ -107,6 +107,8 @@ function GetStipendienbezieherStip($parameters)
$konto = new konto();
$studGebuehr = $konto->getStudiengebuehrGesamt($studentUID, $studSemester);
+ // , als Dezimaltrennzeichen
+ $studGebuehr = str_replace('.', ',', $studGebuehr);
if($BezieherStip->Typ == "as" || $BezieherStip->Typ == "AS")
{
@@ -155,7 +157,7 @@ function GetStipendienbezieherStip($parameters)
}else
return new SoapFault("Server", $StipBezieher->errormsg);
}
- $ret = array("ErhKz"=>$ErhalterKz,"AnfragedatenID"=>$AnfrageDatenID, "Stipendiumsbezieher"=>$StipBezieherAntwort);
+ $ret = array("GetStipendienbezieherStipResult" =>array("ErhKz"=>$ErhalterKz,"AnfragedatenID"=>$AnfrageDatenID, "Stipendiumsbezieher"=>$StipBezieherAntwort));
return $ret;
}
@@ -168,15 +170,15 @@ function SendStipendienbezieherStipError($parameters)
{
$xmlData = file_get_contents('php://input');
-/* $log = new webservicelog();
+ $log = new webservicelog();
$log->request_data = file_get_contents('php://input');
$log->webservicetyp_kurzbz = 'stip';
- $log->request_id = $AnfrageDatenID;
- $log->beschreibung = "Error von Stip";
- $log->save(true);*/
+ //$log->request_id = $AnfrageDatenID;
+ $log->beschreibung = "Stip Error";
+ $log->save(true);
- $mail = new mail(MAIL_ADMIN, 'vilesci.technikum-wien.at', 'STIP - Error', $xmlData);
- $mail->send();
+ $mail = new mail('burkhart@technikum-wien.at', 'vilesci.technikum-wien.at', 'STIP - Error', $xmlData);
+ $mail->send();
}
?>
diff --git a/soap/stip.wsdl.php b/soap/stip.wsdl.php
index 4018462b5..f16fab6cf 100644
--- a/soap/stip.wsdl.php
+++ b/soap/stip.wsdl.php
@@ -65,22 +65,20 @@ echo "";
-
-
-
-
+
-
+
diff --git a/soap/stip_client.php b/soap/stip_client.php
index 47b42eb9f..10d26114b 100644
--- a/soap/stip_client.php
+++ b/soap/stip_client.php
@@ -64,7 +64,7 @@ require_once('stip.class.php');
if(isset($_REQUEST['submit']))
{
- $client = new SoapClient(APP_ROOT."/soap/stip.wsdl.php?".microtime());
+ $client = new SoapClient("https://cis.technikum-wien.at/soap/stip.wsdl.php?".microtime());
//$client = new SoapClient(APP_ROOT."/soap/stip.soap.wsdl", array('login'=>'stip','password'=>'stip'));
$username = "test";
@@ -110,7 +110,7 @@ if(isset($_REQUEST['submit']))
$response_stip = $client->GetStipendienbezieherStip(array("userName"=>$username,"passWord"=>$passwort,"anfrageDaten"=>array("ErhKz"=>$ErhKz, "AnfragedatenID"=>$AnfragedatenID,"Stipendiumsbezieher"=>array($bezieher))));
var_dump($response_stip);
echo '
';
- var_dump($response_stip->Stipendiumsbezieher->StipendiumsbezieherAntwort);
+ //var_dump($response_stip->Stipendiumsbezieher->StipendiumsbezieherAntwort);
$response_error = $client->SendStipendienbezieherStipError(array("userName"=>"abc", "passWord"=>"test", "errorReport"=>array("ErhKz"=>"erhkz", "StateCode"=>"statecode", "StateMessage"=>"statemessage", "ErrorStatusCode"=>"errorstatuscode", "JobID"=>"jobid", "ErrorContent"=>array($obj))));
var_dump($response_error);
@@ -173,7 +173,7 @@ anfrageDaten.appendChild(stipendiumsbezieher);
soapBody.appendChild(anfrageDaten);
var sr = new SOAPRequest("GetStipendienbezieherStip",soapBody);
sr.addNamespace('ns1','http://www.fhr.ac.at/BISWS/STIP/WebServices/Services/STIPServiceDecentralized');
-SOAPClient.Proxy="/soap/stip.soap.php?"+gettimestamp();
+SOAPClient.Proxy="https://cis.technikum-wien.at/soap/stip.soap.php?"+gettimestamp();
SOAPClient.SendRequest(sr, clb_saveProjektphase);
}