ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilSoapDummyAuthServer Class Reference
+ Collaboration diagram for ilSoapDummyAuthServer:

Public Member Functions

 __construct ($a_use_wsdl=true)
 
 start ()
 
 __enableWSDL ()
 
 __registerMethods ()
 

Data Fields

 $server = null
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilSoapDummyAuthServer::__construct (   $a_use_wsdl = true)

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

References __enableWSDL(), and __registerMethods().

78  {
79  define('SERVICE_NAME','ILIAS SOAP Dummy Authentication Server');
80  define('SERVICE_NAMESPACE','urn:ilSoapDummyAuthServer');
81  define('SERVICE_STYLE','rpc');
82  define('SERVICE_USE','encoded');
83 
84  $this->server = new soap_server();
85 
86  if($a_use_wsdl)
87  {
88  $this->__enableWSDL();
89  }
90 
91  $this->__registerMethods();
92 
93  }
soap_server allows the user to create a SOAP server that is capable of receiving messages and returni...
Definition: nusoap.php:2313
+ Here is the call graph for this function:

Member Function Documentation

◆ __enableWSDL()

ilSoapDummyAuthServer::__enableWSDL ( )

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

Referenced by __construct().

105  {
106  $this->server->configureWSDL(SERVICE_NAME,SERVICE_NAMESPACE);
107 
108  return true;
109  }
+ Here is the caller graph for this function:

◆ __registerMethods()

ilSoapDummyAuthServer::__registerMethods ( )

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

References array.

Referenced by __construct().

113  {
114 
115  // Add useful complex types. E.g. array("a","b") or array(1,2)
116  $this->server->wsdl->addComplexType('intArray',
117  'complexType',
118  'array',
119  '',
120  'SOAP-ENC:Array',
121  array(),
122  array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'xsd:int[]')),
123  'xsd:int');
124 
125 
126  $this->server->wsdl->addComplexType('stringArray',
127  'complexType',
128  'array',
129  '',
130  'SOAP-ENC:Array',
131  array(),
132  array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'xsd:string[]')),
133  'xsd:string');
134 
135  // isValidSession()
136  $this->server->register('isValidSession',
137  array('ext_uid' => 'xsd:string',
138  'soap_pw' => 'xsd:string',
139  'new_user' => 'xsd:boolean'),
140  array('valid' => 'xsd:boolean',
141  'firstname' => 'xsd:string',
142  'lastname' => 'xsd:string',
143  'email' => 'xsd:string'),
144  SERVICE_NAMESPACE,
145  SERVICE_NAMESPACE.'#isValidSession',
146  SERVICE_STYLE,
147  SERVICE_USE,
148  'Dummy Session Validation');
149 
150  return true;
151  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ start()

ilSoapDummyAuthServer::start ( )

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

References $HTTP_RAW_POST_DATA, and exit.

96  {
97  global $HTTP_RAW_POST_DATA;
98 
99  $this->server->service($HTTP_RAW_POST_DATA);
100  exit();
101  }
global $HTTP_RAW_POST_DATA

Field Documentation

◆ $server

ilSoapDummyAuthServer::$server = null

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


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