示例#1
0
 /**
  * Singleton method
  */
 public static function singleton()
 {
     if (!isset(self::$_instance)) {
         self::$_instance = new soap_server();
         // Set the error handler
         WSCMError::setErrorHandler(new WSCMSoapErrorHandler());
         // Configure the service
         self::$_instance->configureWSDL('WSCMService', 'urn:WSCMService');
     }
     return self::$_instance;
 }
示例#2
0
 /**
  * Handles an error by calling the WSError error handler
  *
  * @param WSError Error
  */
 protected function handleError($error)
 {
     $handler = WSCMError::getErrorHandler();
     $handler->handle($error);
 }