public function executeQuery()
    {
        try{
            $request = $this->buildRequest();
            if (is_callable($this->eventsList["BeforeExecuteQuery"])) {
                call_user_func_array($this->eventsList["BeforeExecuteQuery"], array(
                    $request,
                    $this->getCurrentAction()
                ));
            }
            $responseInfo = array();
            $response = $this->executeQueryDirect($request, $responseInfo);
            if ($responseInfo['HttpCode'] >= 400) {
                $error = $this->extractError($response);
                throw new Exception($error['Message']);
            }

            if (!empty($response)) {
                $this->processResponse($response);
            }
            $this->requestStatus = ClientRequestStatus::CompletedSuccess;
        }
        catch(Exception $e){
            $this->requestStatus = ClientRequestStatus::CompletedException;
            throw $e;
        }
    }
public function executeQuery()
    {
        try{
            $request = $this->buildRequest();
            if (is_callable($this->eventsList["BeforeExecuteQuery"])) {
                call_user_func_array($this->eventsList["BeforeExecuteQuery"], array(
                    $request,
                    $this->getCurrentAction()
                ));
            }
            $responseInfo = array();
            $response = $this->executeQueryDirect($request, $responseInfo);
            if ($responseInfo['HttpCode'] >= 400) {
                $error = $this->extractError($response);
                throw new Exception($error['Message']);
            }

            if (!empty($response)) {
                $this->processResponse($response);
            }
            $this->requestStatus = ClientRequestStatus::CompletedSuccess;
        }
        catch(Exception $e){
            $this->requestStatus = ClientRequestStatus::CompletedException;
            throw $e;
        }
    }
public function executeQuery ( ) { try { $ request = $ this -> buildRequest ( ) ; if ( is_callable ( $ this -> eventsList [ "BeforeExecuteQuery" ] ) ) { call_user_func_array ( $ this -> eventsList [ "BeforeExecuteQuery" ] , array ( $ request , $ this -> getCurrentAction ( ) ) ) ; } $ responseInfo = array ( ) ; $ response = $ this -> executeQueryDirect ( $ request , $ responseInfo ) ; if ( $ responseInfo [ 'HttpCode' ] >= 400 ) { $ error = $ this -> extractError ( $ response ) ; throw new Exception ( $ error [ 'Message' ] ) ; } if ( ! empty ( $ response ) ) { $ this -> processResponse ( $ response ) ; } $ this -> requestStatus = ClientRequestStatus :: CompletedSuccess ; } catch ( Exception $ e ) { $ this -> requestStatus = ClientRequestStatus :: CompletedException ; throw $ e ; } }
Submit query to OData service
@throws Exception
Submit query to OData service