ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 65 of file class.ilSoapDummyAuthServer.php.

Constructor & Destructor Documentation

◆ __construct()

ilSoapDummyAuthServer::__construct (   $a_use_wsdl = true)

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

References __enableWSDL(), and __registerMethods().

74  {
75  define('SERVICE_NAME', 'ILIAS SOAP Dummy Authentication Server');
76  define('SERVICE_NAMESPACE', 'urn:ilSoapDummyAuthServer');
77  define('SERVICE_STYLE', 'rpc');
78  define('SERVICE_USE', 'encoded');
79 
80  $this->server = new soap_server();
81 
82  if ($a_use_wsdl) {
83  $this->__enableWSDL();
84  }
85 
86  $this->__registerMethods();
87  }
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 98 of file class.ilSoapDummyAuthServer.php.

Referenced by __construct().

99  {
100  $this->server->configureWSDL(SERVICE_NAME, SERVICE_NAMESPACE);
101 
102  return true;
103  }
+ Here is the caller graph for this function:

◆ __registerMethods()

ilSoapDummyAuthServer::__registerMethods ( )

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

References array.

Referenced by __construct().

107  {
108 
109  // Add useful complex types. E.g. array("a","b") or array(1,2)
110  $this->server->wsdl->addComplexType(
111  'intArray',
112  'complexType',
113  'array',
114  '',
115  'SOAP-ENC:Array',
116  array(),
117  array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'xsd:int[]')),
118  'xsd:int'
119  );
120 
121 
122  $this->server->wsdl->addComplexType(
123  'stringArray',
124  'complexType',
125  'array',
126  '',
127  'SOAP-ENC:Array',
128  array(),
129  array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'xsd:string[]')),
130  'xsd:string'
131  );
132 
133  // isValidSession()
134  $this->server->register(
135  'isValidSession',
136  array('ext_uid' => 'xsd:string',
137  'soap_pw' => 'xsd:string',
138  'new_user' => 'xsd:boolean'),
139  array('valid' => 'xsd:boolean',
140  'firstname' => 'xsd:string',
141  'lastname' => 'xsd:string',
142  'email' => 'xsd:string'),
143  SERVICE_NAMESPACE,
144  SERVICE_NAMESPACE . '#isValidSession',
145  SERVICE_STYLE,
146  SERVICE_USE,
147  'Dummy Session Validation'
148  );
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 89 of file class.ilSoapDummyAuthServer.php.

References $HTTP_RAW_POST_DATA, and exit.

90  {
91  global $HTTP_RAW_POST_DATA;
92 
93  $this->server->service($HTTP_RAW_POST_DATA);
94  exit();
95  }
global $HTTP_RAW_POST_DATA

Field Documentation

◆ $server

ilSoapDummyAuthServer::$server = null

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


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