[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
1 changed files with 1 additions and 3 deletions

View File

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