Example #1
0
 public function __invoke(CommandInterface $command, ResponseInterface $response)
 {
     $output = $this->api->getOperation($command->getName())->getOutput();
     $xml = $response->xml();
     if ($this->honorResultWrapper && $output['resultWrapper']) {
         $xml = $xml->{$output['resultWrapper']};
     }
     return new Result($this->xmlParser->parse($output, $xml));
 }
 protected function payload(ResponseInterface $response, StructureShape $member, array &$result)
 {
     $xml = new \SimpleXMLElement($response->getBody());
     $result += $this->parser->parse($member, $xml);
 }
Example #3
0
 protected function payload(ResponseInterface $response, StructureShape $member, array &$result)
 {
     $result += $this->parser->parse($member, $response->xml());
 }