3 declare(strict_types=1);
25 include_once
'./webservice/soap/lib/nusoap.php';
37 $ret[
"firstname"] =
"first " .
$ext_uid;
38 $ret[
"lastname"] =
"last " .
$ext_uid;
39 $ret[
"email"] = $ext_uid .
"@de.de";
43 if ($ext_uid === $soap_pw) {
46 $ret[
"valid"] =
false;
59 define(
'SERVICE_NAME',
'ILIAS SOAP Dummy Authentication Server');
60 define(
'SERVICE_NAMESPACE',
'urn:ilSoapDummyAuthServer');
61 define(
'SERVICE_STYLE',
'rpc');
62 define(
'SERVICE_USE',
'encoded');
75 $postdata = file_get_contents(
"php://input");
76 $this->server->service($postdata);
82 $this->server->configureWSDL(SERVICE_NAME, SERVICE_NAMESPACE);
90 $this->server->wsdl->addComplexType(
97 [[
'ref' =>
'SOAP-ENC:arrayType',
'wsdl:arrayType' =>
'xsd:int[]']],
102 $this->server->wsdl->addComplexType(
109 [[
'ref' =>
'SOAP-ENC:arrayType',
'wsdl:arrayType' =>
'xsd:string[]']],
114 $this->server->register(
117 'ext_uid' =>
'xsd:string',
118 'soap_pw' =>
'xsd:string',
119 'new_user' =>
'xsd:boolean' 122 'valid' =>
'xsd:boolean',
123 'firstname' =>
'xsd:string',
124 'lastname' =>
'xsd:string',
125 'email' =>
'xsd:string' 128 SERVICE_NAMESPACE .
'#isValidSession',
131 'Dummy Session Validation'
isValidSession(string $ext_uid, string $soap_pw, bool $new_user)
SOAP dummy authentication server.
__construct($a_use_wsdl=true)