private function callNextDependency($sid, $cp_options) { global $ilLog; $cp_options->dropFirstDependenciesNode(); if ($cp_options->isSOAPEnabled()) { // Start next soap call include_once 'Services/WebServices/SOAP/classes/class.ilSoapClient.php'; $soap_client = new ilSoapClient(); $soap_client->setResponseTimeout(1); $soap_client->enableWSDL(true); $soap_client->init(); $soap_client->call('ilCloneDependencies', array($sid, $cp_options->getCopyId())); } else { $ilLog->write(__METHOD__ . ': Cannot call SOAP server'); $cp_options->read(); include_once './webservice/soap/include/inc.soap_functions.php'; $res = ilSoapFunctions::ilCloneDependencies($sid, $cp_options->getCopyId()); } return true; }