Ejemplo n.º 1
0
 /**
  * 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());
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }