/** * Process a response to verify that it succeeded and take the appropriate * action * * @throws EWS_Exception * * @param stdClass $response * @return EWSType * * @todo Map the response to a real object. */ protected function processResponse($response) { // If the soap call failed then we need to thow an exception. $code = $this->soap->getResponseCode(); if ($code != 200) { throw new EWS_Exception('SOAP client returned status of ' . $code, $code); } return $response; }
/** * Process a response to verify that it succeeded and take the appropriate * action * * @throws EWS_Exception * * @param stdClass $response * @return EWSType * * @todo map the response to a real object */ protected function processResponse($response) { // if the soap call failed then we need to thow an exception $code = $this->soap->getResponseCode(); if ($code != 200) { throw new EWS_Exception('SOAP client returned status of ' . $code, $code); } // end if the soap called // TODO: map the response to a real object return $response; }