/** * This function sets the fault object on the NUSOAP * * @param SoapError $errorObject - This is an object of type SoapError * @access public */ public function error($errorObject) { $GLOBALS['log']->info('Begin: NusoapSoap->error'); $this->server->fault($errorObject->getFaultCode(), $errorObject->getName(), '', $errorObject->getDescription()); $GLOBALS['log']->info('Begin: NusoapSoap->error'); }
/** * This function sets the fault object on the NUSOAP * * @param SoapError $errorObject - This is an object of type SoapError * @access public */ public function error($errorObject) { $GLOBALS['log']->info('Begin: NusoapSoap->error'); // report all failures as caused by client since we don't have the needed attribute // in existing error definitions $this->server->fault('SOAP-ENV:Client', $errorObject->getName(), '', array('code' => $errorObject->getFaultCode(), 'message' => $errorObject->getDescription())); $GLOBALS['log']->info('End: NusoapSoap->error'); }