ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilNusoapUserAdministrationAdapter Class Reference
+ Collaboration diagram for ilNusoapUserAdministrationAdapter:

Public Member Functions

 __construct (bool $a_use_wsdl=true)
 
 start ()
 

Data Fields

soap_server $server
 

Protected Member Functions

 handleSoapPlugins ()
 Register any methods and types of SOAP plugins to the SOAP server. More...
 

Private Member Functions

 enableWSDL ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilNusoapUserAdministrationAdapter::__construct ( bool  $a_use_wsdl = true)

Definition at line 54 of file class.ilNusoapUserAdministrationAdapter.php.

References enableWSDL().

55  {
56  define('SERVICE_NAME', 'ILIASSoapWebservice');
57  define('SERVICE_NAMESPACE', 'urn:ilUserAdministration');
58  define('SERVICE_STYLE', 'rpc');
59  define('SERVICE_USE', 'encoded');
60  $this->server = new soap_server();
61  $this->server->decode_utf8 = false;
62  $this->server->class = "ilSoapFunctions";
63 
64  if ($a_use_wsdl) {
65  $this->enableWSDL();
66  }
67 
68  $this->registerMethods();
69  }
Backward compatibility.
Definition: nusoap.php:4600
+ Here is the call graph for this function:

Member Function Documentation

◆ enableWSDL()

ilNusoapUserAdministrationAdapter::enableWSDL ( )
private

Definition at line 78 of file class.ilNusoapUserAdministrationAdapter.php.

References $_GET, Vendor\Package\$f, and handleSoapPlugins().

Referenced by __construct().

78  : void
79  {
80  $this->server->configureWSDL(SERVICE_NAME, SERVICE_NAMESPACE);
81  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleSoapPlugins()

ilNusoapUserAdministrationAdapter::handleSoapPlugins ( )
protected

Register any methods and types of SOAP plugins to the SOAP server.

Definition at line 1533 of file class.ilNusoapUserAdministrationAdapter.php.

References $DIC, $type, ilContext\CONTEXT_SOAP, ilContext\CONTEXT_SOAP_NO_AUTH, ilContext\init(), and ilInitialisation\initILIAS().

Referenced by enableWSDL().

1533  : void
1534  {
1535  // Note: We need a context that does not handle authentication at this point, because this is
1536  // handled by an actual SOAP request which always contains the session ID and client
1540 
1541  global $DIC;
1542 
1543  $component_factory = $DIC['component.factory'];
1544  $soapHook = new ilSoapHook($component_factory);
1545  foreach ($soapHook->getWsdlTypes() as $type) {
1546  $this->server->wsdl->addComplexType(
1547  $type->getName(),
1548  $type->getTypeClass(),
1549  $type->getPhpType(),
1550  $type->getCompositor(),
1551  $type->getRestrictionBase(),
1552  $type->getElements(),
1553  $type->getAttributes(),
1554  $type->getArrayType()
1555  );
1556  }
1557  foreach ($soapHook->getSoapMethods() as $method) {
1558  $this->server->register(
1559  $method->getName(),
1560  $method->getInputParams(),
1561  $method->getOutputParams(),
1562  $method->getServiceNamespace(),
1563  $method->getServiceNamespace() . '#' . $method->getName(),
1564  $method->getServiceStyle(),
1565  $method->getServiceUse(),
1566  $method->getDocumentation()
1567  );
1568  }
1569  }
$type
const CONTEXT_SOAP_NO_AUTH
global $DIC
Definition: feed.php:28
static initILIAS()
ilias initialisation
Class ilSoapHook.
static init(string $a_type)
Init context by type.
const CONTEXT_SOAP
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ start()

ilNusoapUserAdministrationAdapter::start ( )

Definition at line 71 of file class.ilNusoapUserAdministrationAdapter.php.

References exit.

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

Field Documentation

◆ $server

soap_server ilNusoapUserAdministrationAdapter::$server

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


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