ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilNusoapUserAdministrationAdapter Class Reference
+ Collaboration diagram for ilNusoapUserAdministrationAdapter:

Public Member Functions

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

Data Fields

 $server = null
 

Protected Member Functions

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

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilNusoapUserAdministrationAdapter::__construct (   $a_use_wsdl = true)

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

References __enableWSDL().

61  {
62  define('SERVICE_NAME', 'ILIASSoapWebservice');
63  define('SERVICE_NAMESPACE', 'urn:ilUserAdministration');
64  define('SERVICE_STYLE', 'rpc');
65  define('SERVICE_USE', 'encoded');
66  $this->server = new soap_server();
67  $this->server->decode_utf8 = false;
68  $this->server->class = "ilSoapFunctions";
69 
70  if ($a_use_wsdl) {
71  $this->__enableWSDL();
72  }
73 
74  $this->__registerMethods();
75  }
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()

ilNusoapUserAdministrationAdapter::__enableWSDL ( )

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

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

Referenced by __construct().

86  {
87  $this->server->configureWSDL(SERVICE_NAME, SERVICE_NAMESPACE);
88 
89  return true;
90  }
+ 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 1627 of file class.ilNusoapUserAdministrationAdapter.php.

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

Referenced by __enableWSDL().

1628  {
1629  // Note: We need a context that does not handle authentication at this point, because this is
1630  // handled by an actual SOAP request which always contains the session ID and client
1634 
1635  global $DIC;
1636 
1637  $ilPluginAdmin = $DIC['ilPluginAdmin'];
1638  $soapHook = new ilSoapHook($ilPluginAdmin);
1639  foreach ($soapHook->getWsdlTypes() as $type) {
1640  $this->server->wsdl->addComplexType(
1641  $type->getName(),
1642  $type->getTypeClass(),
1643  $type->getPhpType(),
1644  $type->getCompositor(),
1645  $type->getRestrictionBase(),
1646  $type->getElements(),
1647  $type->getAttributes(),
1648  $type->getArrayType()
1649  );
1650  }
1651  foreach ($soapHook->getSoapMethods() as $method) {
1652  $this->server->register(
1653  $method->getName(),
1654  $method->getInputParams(),
1655  $method->getOutputParams(),
1656  $method->getServiceNamespace(),
1657  $method->getServiceNamespace() . '#' . $method->getName(),
1658  $method->getServiceStyle(),
1659  $method->getServiceUse(),
1660  $method->getDocumentation()
1661  );
1662  }
1663  }
$type
const CONTEXT_SOAP_NO_AUTH
static initILIAS()
ilias initialisation
Class ilSoapHook.
static init($a_type)
Init context by type.
$DIC
Definition: xapitoken.php:46
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 77 of file class.ilNusoapUserAdministrationAdapter.php.

References exit.

78  {
79  $postdata = file_get_contents("php://input");
80  $this->server->service($postdata);
81  exit();
82  }
exit
Definition: login.php:29

Field Documentation

◆ $server

ilNusoapUserAdministrationAdapter::$server = null

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


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