From d6752a41e9157fa1f2a785865d2c5ec92c040d55 Mon Sep 17 00:00:00 2001 From: Francis Besset Date: Wed, 13 Nov 2013 15:46:50 +0100 Subject: [PATCH] [SoapWsdl] Fixed bad usage name of type included in an other ComplexType Fixed issue #21 --- src/BeSimple/SoapWsdl/Dumper/Dumper.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/BeSimple/SoapWsdl/Dumper/Dumper.php b/src/BeSimple/SoapWsdl/Dumper/Dumper.php index da5d586..f254534 100644 --- a/src/BeSimple/SoapWsdl/Dumper/Dumper.php +++ b/src/BeSimple/SoapWsdl/Dumper/Dumper.php @@ -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);