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);
91 $this->server->wsdl->addComplexType(
98 [[
'ref' =>
'SOAP-ENC:arrayType',
'wsdl:arrayType' =>
'xsd:int[]']],
103 $this->server->wsdl->addComplexType(
110 [[
'ref' =>
'SOAP-ENC:arrayType',
'wsdl:arrayType' =>
'xsd:string[]']],
115 $this->server->register(
118 'ext_uid' =>
'xsd:string',
119 'soap_pw' =>
'xsd:string',
120 'new_user' =>
'xsd:boolean' 123 'valid' =>
'xsd:boolean',
124 'firstname' =>
'xsd:string',
125 'lastname' =>
'xsd:string',
126 'email' =>
'xsd:string' 129 SERVICE_NAMESPACE .
'#isValidSession',
132 'Dummy Session Validation'
isValidSession(string $ext_uid, string $soap_pw, bool $new_user)
SOAP dummy authentication server.
__construct($a_use_wsdl=true)