ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
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
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
server.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
13
chdir(
"../.."
);
14
const
ILIAS_MODULE
=
"webservice/soap"
;
15
const
IL_SOAPMODE_NUSOAP
= 0;
16
const
IL_SOAPMODE_INTERNAL
= 1;
17
18
// php7 only SOAPMODE_INTERNAL
19
const
IL_SOAPMODE
=
IL_SOAPMODE_INTERNAL
;
20
include_once
"Services/Context/classes/class.ilContext.php"
;
21
ilContext::init
(
ilContext::CONTEXT_SOAP
);
22
23
require_once(
"./Services/Init/classes/class.ilIniFile.php"
);
24
$ilIliasIniFile
=
new
ilIniFile
(
"./ilias.ini.php"
);
25
$ilIliasIniFile
->read();
26
27
if
(
$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'
);
30
31
$headerName =
"HTTP_"
. str_replace(
"-"
,
"_"
, strtoupper($headerName));
32
if
(strcasecmp(
$_SERVER
[$headerName], $headerValue) === 0) {
33
$_SERVER
[
'HTTPS'
] =
'on'
;
34
}
35
}
36
37
if
(
IL_SOAPMODE
===
IL_SOAPMODE_INTERNAL
&& strcasecmp(
$_SERVER
[
"REQUEST_METHOD"
],
"post"
) === 0) {
38
// This is a SOAP request
39
include_once(
'webservice/soap/include/inc.soap_functions.php'
);
40
$uri =
ilSoapFunctions::buildHTTPPath
() .
'/webservice/soap/server.php'
;
41
if
(isset(
$_GET
[
'client_id'
])) {
42
$uri .=
'?client_id='
.
$_GET
[
'client_id'
];
43
$wsdl = $uri .
'&wsdl'
;
44
}
else
{
45
$wsdl = $uri .
'?wsdl'
;
46
}
47
$soapServer =
new
SoapServer($wsdl, array(
'uri'
=> $uri));
48
$soapServer->setObject(
new
ilSoapFunctions
());
49
$soapServer->handle();
50
}
else
{
51
// This is a request to display the available SOAP methods or WSDL...
52
include(
'webservice/soap/nusoapserver.php'
);
53
}
IL_SOAPMODE_NUSOAP
const IL_SOAPMODE_NUSOAP
Definition:
server.php:15
ilSoapFunctions
Definition:
inc.soap_functions.php:39
ilSoapFunctions\buildHTTPPath
static buildHTTPPath()
Definition:
inc.soap_functions.php:860
$ilIliasIniFile
$ilIliasIniFile
Definition:
server.php:24
$_GET
$_GET['client_id']
Definition:
saml1-acs.php:21
$_SERVER
$_SERVER['HTTP_HOST']
Definition:
raiseError.php:10
IL_SOAPMODE_INTERNAL
const IL_SOAPMODE_INTERNAL
Definition:
server.php:16
ilContext\init
static init(string $a_type)
Init context by type.
Definition:
class.ilContext.php:52
ILIAS_MODULE
const ILIAS_MODULE
Definition:
server.php:14
ilContext\CONTEXT_SOAP
const CONTEXT_SOAP
Definition:
class.ilContext.php:34
ilIniFile
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilIniFile.php:47
IL_SOAPMODE
const IL_SOAPMODE
Definition:
server.php:19
webservice
soap
server.php
Generated on Sun Apr 6 2025 22:02:54 for ILIAS by
1.8.13 (using
Doxyfile
)