mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 16:02:15 +00:00
This commit is contained in:
+9
-7
@@ -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();
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
+6
-8
@@ -65,22 +65,20 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
</s:extension>
|
||||
</s:complexContent>
|
||||
</s:complexType>
|
||||
|
||||
<s:element name="GetStipendienbezieherStipResponse">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="ErhKz" type="s:string"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="AnfragedatenID" type="s:string"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="Stipendiumsbezieher" type="tns:ArrayOfStipendiumsbezieherAntwort"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="GetStipendienbezieherStipResult" type="tns:GetStipendienbezieherStipResponse"/>
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<!-- <s:complexType name="GetStipendienbezieherStipResponse">
|
||||
<s:complexType name="GetStipendienbezieherStipResponse">
|
||||
<s:sequence>
|
||||
<s:element maxOccurs="1" name="ErhKz" type="s:string"/>
|
||||
<s:element maxOccurs="1" name="AnfragedatenID" type="s:string"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="ErhKz" type="s:string"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="AnfragedatenID" type="s:string"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="Stipendiumsbezieher" type="tns:ArrayOfStipendiumsbezieherAntwort"/>
|
||||
</s:sequence>
|
||||
</s:complexType> -->
|
||||
</s:complexType>
|
||||
<s:complexType name="ArrayOfStipendiumsbezieherAntwort">
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="unbounded" name="StipendiumsbezieherAntwort" nillable="true" type="tns:StipendiumsbezieherAntwort"/>
|
||||
|
||||
@@ -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 '<hr>';
|
||||
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="<?php echo APP_ROOT;?>/soap/stip.soap.php?"+gettimestamp();
|
||||
SOAPClient.Proxy="https://cis.technikum-wien.at/soap/stip.soap.php?"+gettimestamp();
|
||||
|
||||
SOAPClient.SendRequest(sr, clb_saveProjektphase);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user