14 define(
"ILIAS_MODULE",
"webservice/soap");
15 define(
"IL_SOAPMODE_NUSOAP", 0);
16 define(
"IL_SOAPMODE_INTERNAL", 1);
20 include_once
"Services/Context/classes/class.ilContext.php";
23 require_once(
"./Services/Init/classes/class.ilIniFile.php");
27 if ((
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');
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
static buildHTTPPath()
builds http path if no client is available
const IL_SOAPMODE_INTERNAL
static init($a_type)
Init context by type.