21require_once(
'./webservice/soap/classes/class.ilSoapAdministration.php');
22require_once(
'./Services/WebServices/SOAP/classes/class.ilSoapPluginException.php');
24use ilOrgUnitSOAPServicesPlugin;
42 public const SID =
'sid';
84 throw new ilSoapPluginException(
"Request is missing at least one of the following parameters: $names");
91 return 'urn:' . ilOrgUnitSOAPServicesPlugin::PLUGIN_NAME;
100 self::SID => self::TYPE_STRING,
112 $this->
init($session_id);
117 $this->
addError(
'Permission denied');
120 $clean_params = array();
127 return $this->
run($clean_params);
141 private function init(
string $session_id): void
addError(string $message)
initIliasAndCheckSession(string $session_id)
Use this method at the beginning of your execute() method to check if the provided session ID is vali...
getInputParams()
Get the input parameters.
checkParameters(array $params)
Check that all input parameters are present when executing the soap method.
getServiceStyle()
Get the service style, e.g.
getServiceNamespace()
Get the namespace of the service where this method belongs to.
execute(array $params)
Execute the business logic for this SOAP method (when a SOAP request hits the endpoint defined by the...
getAdditionalInputParams()
getServiceUse()
Get the service use, e.g.
soap server Base class for all SOAP registered methods.
raiseError(string $a_message, $a_code)
checkSession(string $sid)
Class ilSoapPluginException.
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...