getProperties() as $p) { $name = $p->getName(); if (strpos($name, 'Response') !== false) { return $p->getValue($this); } } return null; } /** * parse the response data and throws exceptions * * @throws Zend_Service_DeveloperGarden_Response_Exception * @return mixed */ public function parse() { $retVal = $this->getResponse(); if ($retVal === null) { $this->statusCode = 9999; $this->statusMessage = 'Internal response property not found.'; } else { $this->statusCode = $retVal->getStatusCode(); $this->statusMessage = $retVal->getStatusMessage(); } parent::parse(); return $retVal; } }