ILIAS  release_8 Revision v8.24
ilSoapDummyAuthServer Class Reference
+ Collaboration diagram for ilSoapDummyAuthServer:

Public Member Functions

 __construct ($a_use_wsdl=true)
 
 start ()
 
 enableWSDL ()
 
 registerMethods ()
 

Data Fields

soap_server $server = null
 

Detailed Description

Definition at line 52 of file class.ilSoapDummyAuthServer.php.

Constructor & Destructor Documentation

◆ __construct()

ilSoapDummyAuthServer::__construct (   $a_use_wsdl = true)

Definition at line 57 of file class.ilSoapDummyAuthServer.php.

58 {
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');
63
64 $this->server = new soap_server();
65
66 if ($a_use_wsdl) {
67 $this->enableWSDL();
68 }
69
70 $this->registerMethods();
71 }
Backward compatibility.
Definition: nusoap.php:4601

References enableWSDL(), and registerMethods().

+ Here is the call graph for this function:

Member Function Documentation

◆ enableWSDL()

ilSoapDummyAuthServer::enableWSDL ( )

Definition at line 80 of file class.ilSoapDummyAuthServer.php.

80 : bool
81 {
82 $this->server->configureWSDL(SERVICE_NAME, SERVICE_NAMESPACE);
83
84 return true;
85 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ registerMethods()

ilSoapDummyAuthServer::registerMethods ( )

Definition at line 87 of file class.ilSoapDummyAuthServer.php.

87 : bool
88 {
89
90 // Add useful complex types. E.g. array("a","b") or array(1,2)
91 $this->server->wsdl->addComplexType(
92 'intArray',
93 'complexType',
94 'array',
95 '',
96 'SOAP-ENC:Array',
97 [],
98 [['ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => 'xsd:int[]']],
99 'xsd:int'
100 );
101
102
103 $this->server->wsdl->addComplexType(
104 'stringArray',
105 'complexType',
106 'array',
107 '',
108 'SOAP-ENC:Array',
109 [],
110 [['ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => 'xsd:string[]']],
111 'xsd:string'
112 );
113
114 // isValidSession()
115 $this->server->register(
116 'isValidSession',
117 [
118 'ext_uid' => 'xsd:string',
119 'soap_pw' => 'xsd:string',
120 'new_user' => 'xsd:boolean'
121 ],
122 [
123 'valid' => 'xsd:boolean',
124 'firstname' => 'xsd:string',
125 'lastname' => 'xsd:string',
126 'email' => 'xsd:string'
127 ],
128 SERVICE_NAMESPACE,
129 SERVICE_NAMESPACE . '#isValidSession',
130 SERVICE_STYLE,
131 SERVICE_USE,
132 'Dummy Session Validation'
133 );
134
135 return true;
136 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ start()

ilSoapDummyAuthServer::start ( )

Definition at line 73 of file class.ilSoapDummyAuthServer.php.

73 : void
74 {
75 $postdata = file_get_contents("php://input");
76 $this->server->service($postdata);
77 exit();
78 }
exit
Definition: login.php:28

References exit.

Field Documentation

◆ $server

soap_server ilSoapDummyAuthServer::$server = null

Definition at line 54 of file class.ilSoapDummyAuthServer.php.


The documentation for this class was generated from the following file: