Hi,
I'm tryning to create a new user via a custom soap method with the following code:
$user = new ilObjUser();
$user->setFirstname((string)$params[1]);
$user->setLastname((string)$params[2]);
$user->setEmail((string)$params[3]);
$user->setLogin((string)$params[4]);
$user->setExternalAccount((string)$params[4]);
$user->setAuthMode('soap');
$user->setActive(true);
$user->create();
The following exception is thrown?
What am I missing?
Thanx for any hint.
I'm tryning to create a new user via a custom soap method with the following code:
$user = new ilObjUser();
$user->setFirstname((string)$params[1]);
$user->setLastname((string)$params[2]);
$user->setEmail((string)$params[3]);
$user->setLogin((string)$params[4]);
$user->setExternalAccount((string)$params[4]);
$user->setAuthMode('soap');
$user->setActive(true);
$user->create();
The following exception is thrown?
InvalidArgumentException: Identifier "ilUser" is not defined. in file /srv/wwwdev/rene/libs/composer/vendor/pimple/pimple/src/Pimple/Container.php on line 96
Stack trace:
1. InvalidArgumentException->() /srv/wwwdev/rene/libs/composer/vendor/pimple/pimple/src/Pimple/Container.php:96
2. Pimple\Container->offsetGet() /srv/wwwdev/rene/Services/Object/classes/class.ilObject.php:688
3. ilObject->create() /srv/wwwdev/rene/Customizing/global/plugins/Services/WebServices/SoapHook/ZinalSoapHook/classes/class.ilImportUserLBSSoapMethod.php:124
4. ilImportUserLBSSoapMethod->execute() /srv/wwwdev/rene/webservice/soap/include/inc.soap_functions.php:1138
5. ilSoapFunctions->__call() [internal]:0
6. SoapServer->handle() /srv/wwwdev/rene/webservice/soap/server.php:52
What am I missing?
Thanx for any hint.