ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 97 of file class.ilSoapDummyAuthServer.php.

Referenced by __construct().

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

◆ __registerMethods()

ilSoapDummyAuthServer::__registerMethods ( )

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

Referenced by __construct().

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

◆ start()

ilSoapDummyAuthServer::start ( )

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

References exit.

90  {
91  $postdata = file_get_contents("php://input");
92  $this->server->service($postdata);
93  exit();
94  }
exit
Definition: backend.php:16

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: