ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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.

References enableWSDL(), and registerMethods().

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:4598
+ Here is the call graph for this function:

Member Function Documentation

◆ enableWSDL()

ilSoapDummyAuthServer::enableWSDL ( )

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

Referenced by __construct().

80  : bool
81  {
82  $this->server->configureWSDL(SERVICE_NAME, SERVICE_NAMESPACE);
83 
84  return true;
85  }
+ Here is the caller graph for this function:

◆ registerMethods()

ilSoapDummyAuthServer::registerMethods ( )

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

Referenced by __construct().

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

◆ start()

ilSoapDummyAuthServer::start ( )

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

References exit.

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

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: