ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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 44 of file class.ilNusoapUserAdministrationAdapter.php.

Constructor & Destructor Documentation

◆ __construct()

ilNusoapUserAdministrationAdapter::__construct ( bool  $a_use_wsdl = true)

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

References enableWSDL().

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

Member Function Documentation

◆ enableWSDL()

ilNusoapUserAdministrationAdapter::enableWSDL ( )
private

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

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

Referenced by __construct().

72  : void
73  {
74  $this->server->configureWSDL(SERVICE_NAME, SERVICE_NAMESPACE);
75  }
+ 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 1512 of file class.ilNusoapUserAdministrationAdapter.php.

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

Referenced by enableWSDL().

1512  : void
1513  {
1514  // Note: We need a context that does not handle authentication at this point, because this is
1515  // handled by an actual SOAP request which always contains the session ID and client
1519 
1520  global $DIC;
1521 
1522  $component_factory = $DIC['component.factory'];
1523  $soapHook = new ilSoapHook($component_factory);
1524  foreach ($soapHook->getWsdlTypes() as $type) {
1525  $this->server->wsdl->addComplexType(
1526  $type->getName(),
1527  $type->getTypeClass(),
1528  $type->getPhpType(),
1529  $type->getCompositor(),
1530  $type->getRestrictionBase(),
1531  $type->getElements(),
1532  $type->getAttributes(),
1533  $type->getArrayType()
1534  );
1535  }
1536  foreach ($soapHook->getSoapMethods() as $method) {
1537  $this->server->register(
1538  $method->getName(),
1539  $method->getInputParams(),
1540  $method->getOutputParams(),
1541  $method->getServiceNamespace(),
1542  $method->getServiceNamespace() . '#' . $method->getName(),
1543  $method->getServiceStyle(),
1544  $method->getServiceUse(),
1545  $method->getDocumentation()
1546  );
1547  }
1548  }
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 65 of file class.ilNusoapUserAdministrationAdapter.php.

References exit.

65  : void
66  {
67  $postdata = file_get_contents("php://input");
68  $this->server->service($postdata);
69  exit();
70  }
exit
Definition: login.php:29

Field Documentation

◆ $server

soap_server ilNusoapUserAdministrationAdapter::$server

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


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