ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilSoapDummyAuthServer Class Reference
+ Collaboration diagram for ilSoapDummyAuthServer:

Public Member Functions

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

Data Fields

soap_server $server = null
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilSoapDummyAuthServer::__construct ( bool  $a_use_wsdl = true)

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

References enableWSDL(), registerMethods(), and ILIAS\UI\examples\Progress\Bar\server().

53  {
54  define('SERVICE_NAME', 'ILIAS SOAP Dummy Authentication Server');
55  define('SERVICE_NAMESPACE', 'urn:ilSoapDummyAuthServer');
56  define('SERVICE_STYLE', 'rpc');
57  define('SERVICE_USE', 'encoded');
58 
59  $this->server = new soap_server();
60 
61  if ($a_use_wsdl) {
62  $this->enableWSDL();
63  }
64 
65  $this->registerMethods();
66  }
Backward compatibility.
Definition: nusoap.php:4570
server()
description: > This example shows how a Progress Bar can be rendered and updated by the server...
Definition: server.php:43
+ Here is the call graph for this function:

Member Function Documentation

◆ enableWSDL()

ilSoapDummyAuthServer::enableWSDL ( )

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

References ILIAS\UI\examples\Progress\Bar\server().

Referenced by __construct().

75  : bool
76  {
77  $this->server->configureWSDL(SERVICE_NAME, SERVICE_NAMESPACE);
78 
79  return true;
80  }
server()
description: > This example shows how a Progress Bar can be rendered and updated by the server...
Definition: server.php:43
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ registerMethods()

ilSoapDummyAuthServer::registerMethods ( )

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

References ILIAS\UI\examples\Progress\Bar\server().

Referenced by __construct().

82  : bool
83  {
84  // Add useful complex types. E.g. array("a","b") or array(1,2)
85  $this->server->wsdl->addComplexType(
86  'intArray',
87  'complexType',
88  'array',
89  '',
90  'SOAP-ENC:Array',
91  [],
92  [['ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => 'xsd:int[]']],
93  'xsd:int'
94  );
95 
96 
97  $this->server->wsdl->addComplexType(
98  'stringArray',
99  'complexType',
100  'array',
101  '',
102  'SOAP-ENC:Array',
103  [],
104  [['ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => 'xsd:string[]']],
105  'xsd:string'
106  );
107 
108  $this->server->register(
109  'isValidSession',
110  [
111  'ext_uid' => 'xsd:string',
112  'soap_pw' => 'xsd:string',
113  'new_user' => 'xsd:boolean'
114  ],
115  [
116  'valid' => 'xsd:boolean',
117  'firstname' => 'xsd:string',
118  'lastname' => 'xsd:string',
119  'email' => 'xsd:string'
120  ],
121  SERVICE_NAMESPACE,
122  SERVICE_NAMESPACE . '#isValidSession',
123  SERVICE_STYLE,
124  SERVICE_USE,
125  'Dummy Session Validation'
126  );
127 
128  return true;
129  }
server()
description: > This example shows how a Progress Bar can be rendered and updated by the server...
Definition: server.php:43
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ start()

ilSoapDummyAuthServer::start ( )

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

References exit, and ILIAS\UI\examples\Progress\Bar\server().

68  : void
69  {
70  $postdata = file_get_contents('php://input');
71  $this->server->service($postdata);
72  exit();
73  }
server()
description: > This example shows how a Progress Bar can be rendered and updated by the server...
Definition: server.php:43
exit
+ Here is the call graph for this function:

Field Documentation

◆ $server

soap_server ilSoapDummyAuthServer::$server = null

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


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