ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
server.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
const
IL_SOAPMODE_NUSOAP
= 0;
22
const
IL_SOAPMODE_INTERNAL
= 1;
23
const
IL_SOAPMODE
=
IL_SOAPMODE_INTERNAL
;
24
const
ILIAS_MODULE
=
'components/ILIAS/soap'
;
25
26
chdir(
'../..'
);
27
28
require_once
'vendor/composer/vendor/autoload.php'
;
29
30
// Initialize the error_reporting level, until it will be overwritte when ILIAS gets initialized
31
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
32
33
ilContext::init
(
ilContext::CONTEXT_SOAP
);
34
35
$ilIliasIniFile
=
new
ilIniFile
(
'./ilias.ini.php'
);
36
$ilIliasIniFile
->read();
37
38
if
(
$ilIliasIniFile
->readVariable(
'https'
,
'auto_https_detect_enabled'
)) {
39
$headerName =
$ilIliasIniFile
->readVariable(
'https'
,
'auto_https_detect_header_name'
);
40
$headerValue =
$ilIliasIniFile
->readVariable(
'https'
,
'auto_https_detect_header_value'
);
41
42
$headerName =
'HTTP_'
. str_replace(
'-'
,
'_'
, strtoupper($headerName));
43
if
(strcasecmp(
$_SERVER
[$headerName], $headerValue) === 0) {
44
$_SERVER
[
'HTTPS'
] =
'on'
;
45
}
46
}
47
48
if
(strcasecmp(
$_SERVER
[
'REQUEST_METHOD'
],
'post'
) === 0) {
49
// This is a SOAP request
50
require_once
'./components/ILIAS/soap/include/inc.soap_functions.php'
;
51
$uri =
ilSoapFunctions::buildHTTPPath
(
false
) .
'/server.php'
;
52
if
(isset(
$_GET
[
'client_id'
])) {
53
$uri .=
'?client_id='
.
$_GET
[
'client_id'
];
54
$wsdl = $uri .
'&wsdl'
;
55
}
else
{
56
$wsdl = $uri .
'?wsdl'
;
57
}
58
59
$soapServer =
new
SoapServer($wsdl, [
'uri'
=> $uri]);
60
$soapServer->setObject(
new
ilSoapFunctions
());
61
$soapServer->handle();
62
}
else
{
63
// This is a request to display the available SOAP methods or WSDL...
64
ilInitialisation::initILIAS
();
65
require
'./components/ILIAS/soap/nusoapserver.php'
;
66
}
$_GET
$_GET["client_id"]
Definition:
webdav.php:30
ilSoapFunctions
Definition:
inc.soap_functions.php:30
IL_SOAPMODE
const IL_SOAPMODE
Definition:
server.php:23
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:1145
$ilIliasIniFile
$ilIliasIniFile
Definition:
server.php:35
$_SERVER
$_SERVER['HTTP_HOST']
Definition:
raiseError.php:26
ILIAS_MODULE
const ILIAS_MODULE
Definition:
server.php:24
IL_SOAPMODE_NUSOAP
const IL_SOAPMODE_NUSOAP
Definition:
server.php:21
IL_SOAPMODE_INTERNAL
const IL_SOAPMODE_INTERNAL
Definition:
server.php:22
ilSoapFunctions\buildHTTPPath
static buildHTTPPath(bool $use_module_depending_path=true)
Definition:
inc.soap_functions.php:754
ilContext\init
static init(string $a_type)
Init context by type.
Definition:
class.ilContext.php:52
ilIniFile
ilContext\CONTEXT_SOAP
const CONTEXT_SOAP
Definition:
class.ilContext.php:34
components
ILIAS
soap
resources
soap
server.php
Generated on Sat Apr 5 2025 23:04:02 for ILIAS by
1.8.13 (using
Doxyfile
)