14define(
"ILIAS_MODULE",
"webservice/soap");
15define(
"IL_SOAPMODE_NUSOAP", 0);
16define(
"IL_SOAPMODE_INTERNAL", 1);
20include_once
"Services/Context/classes/class.ilContext.php";
23require_once(
"./Services/Init/classes/class.ilIniFile.php");
27if ((
bool)
$ilIliasIniFile->readVariable(
'https',
'auto_https_detect_enabled')) {
28 $headerName =
$ilIliasIniFile->readVariable(
'https',
'auto_https_detect_header_name');
29 $headerValue =
$ilIliasIniFile->readVariable(
'https',
'auto_https_detect_header_value');
31 $headerName =
"HTTP_" . str_replace(
"-",
"_", strtoupper($headerName));
32 if (strcasecmp(
$_SERVER[$headerName], $headerValue) == 0) {
39 include_once(
'webservice/soap/include/inc.soap_functions.php');
41 if (isset(
$_GET[
'client_id'])) {
42 $uri .=
'?client_id=' .
$_GET[
'client_id'];
43 $wsdl = $uri .
'&wsdl';
45 $wsdl = $uri .
'?wsdl';
47 $soapServer =
new SoapServer($wsdl, array(
'uri' => $uri));
49 $soapServer->handle();
52 include(
'webservice/soap/nusoapserver.php');
An exception for terminatinating execution or to throw for unit testing.
static init($a_type)
Init context by type.
static buildHTTPPath()
builds http path if no client is available
const IL_SOAPMODE_INTERNAL