[SoapWsdl] Specify an empty message if the input is empty

This commit is contained in:
Francis Besset 2013-12-10 15:22:14 +01:00
parent 1b4e262c60
commit 188f282a87
1 changed files with 2 additions and 2 deletions

View File

@ -189,7 +189,7 @@ class Dumper
protected function addMessages(array $messages)
{
foreach ($messages as $message) {
if ($message->isEmpty()) {
if (preg_match('#Header$#', $message->getName()) && $message->isEmpty()) {
continue;
}
@ -285,7 +285,7 @@ class Dumper
$operation->setAttribute('name', $method->getName());
foreach (array('input' => $method->getInput(), 'output' => $method->getOutput(), 'fault' => $method->getFault()) as $type => $message) {
if ($message->isEmpty()) {
if ('fault' === $type && $message->isEmpty()) {
continue;
}