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