Exemplo n.º 1
0
 /**
  * This function is initializes the properties of Dispatcher class.
  * 
  * @return Object of WebOperationContext class
  */
 function __construct()
 {
     try {
         $this->_dataServiceHost = new DataServiceHost();
     } catch (\Exception $exception) {
         self::_handleException($exception->getMessage(), $exception->getStatusCode());
     }
     try {
         ServiceConfig::validateAndGetsServiceInfo($this->_getServiceNameFromRequestUri(), $this->_serviceInfo);
         $this->_dataServiceHost->setAbsoluteServiceUri($this->_serviceInfo['SERVICE_BASEURL']);
     } catch (ODataException $exception) {
         self::_handleException($exception->getMessage(), $exception->getStatusCode());
     }
 }