[SoapWsdl] Fixed bad usage name of type included in an other ComplexType

Fixed issue #21
This commit is contained in:
Francis Besset 2013-11-13 15:46:50 +01:00
parent 10705aa9e2
commit d6752a41e9

View File

@ -244,11 +244,9 @@ class Dumper
$element->setAttribute('name', $child->getName()); $element->setAttribute('name', $child->getName());
if ($childType instanceof ComplexType) { if ($childType instanceof ComplexType) {
$name = $child->getName(); $name = $childType->getXmlType();
if ($childType instanceof ArrayOfType) { if ($childType instanceof ArrayOfType) {
$name = $childType->getName(); $name = $childType->getName();
} elseif ($type instanceof ArrayOfType && $childType instanceof ComplexType) {
$name = $childType->getXmlType();
} }
$element->setAttribute('type', static::TYPES_NS.':'.$name); $element->setAttribute('type', static::TYPES_NS.':'.$name);