soapServer = $server; } /** * notify * Soap implementation to notify the soap clients of a resource management error * @param msg String message to possibly display */ public function notify($msg = '') { header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error'); header('Content-Type: text/xml; charset="ISO-8859-1"'); $error = new SoapError(); $error->set_error('resource_management_error'); //Override the description $error->description = $msg; $this->soapServer->methodreturn = array('result'=>$msg, 'error'=>$error->get_soap_array()); $this->soapServer->serialize_return(); $this->soapServer->send_response(); sugar_cleanup(true); } } ?>