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)); }
protected function payload(ResponseInterface $response, StructureShape $member, array &$result) { $xml = $this->parseXml($response->getBody()); $result += $this->parser->parse($member, $xml); }