/** * Send request & hydrate response with client response data (content / headers) * * @param Request $request * @param Response $response */ public function sendRequest(Request $request, Response $response) { $clientResponse = $this->getClientRequest($request)->send(); $response->setContent($clientResponse->getBody(true))->headers->add($clientResponse->getHeaders()->getAll()); }
/** * Send soap request & set Response content * * @param Request $request * @param Response $response */ public function sendRequest(Request $request, Response $response) { $object = $this->__soapCall($request->getPathInfo(), array($this->getClientRequest($request)), $this->options, $this->getHeader()); $response->setContent($this->__getLastResponse()); $response->setDeserializedContent($object); }