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

@ -63,12 +63,19 @@ class Method
public function addInput($name, $type)
{
$inName = $this->name;
$this->input = new Message($inName);
$this->input->add($name, $type);
}
public function setOutput($type)
public function setOutput($type, $name = 'return')
{
$this->output->add('return', $type);
if ('return' !== $name) {
$this->output = new Message($name);
}
$this->output->add($name, $type);
}
public function getHeaders()