Response xml format change support with backward compatibility

This commit is contained in:
Michael Veroux
2019-02-11 12:22:13 +01:00
parent 3f2a99adf6
commit bb95a6cb45
3 changed files with 19 additions and 4 deletions

View File

@ -32,7 +32,10 @@ class RpcLiteralResponseMessageBinder implements MessageBinderInterface
{
$this->typeRepository = $typeRepository;
return $this->processType($messageDefinition->getOutput()->get('return')->getType(), $message);
$parts = $messageDefinition->getOutput()->all();
$part = array_shift($parts);
return $this->processType($part->getType(), $message);
}
private function processType($phpType, $message)