From 71d84eddb7c507254a120c9dc2ab005a3b0688be Mon Sep 17 00:00:00 2001 From: Francis Besset Date: Tue, 6 Aug 2013 10:50:07 +0200 Subject: [PATCH] [SoapBundle] Fixed usage of bad key in ComplexType strategy Fix issue #5 --- .../ServiceBinding/RpcLiteralRequestMessageBinder.php | 2 +- .../ServiceBinding/RpcLiteralResponseMessageBinder.php | 2 +- .../SoapBundle/ServiceDefinition/Strategy/ComplexType.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BeSimple/SoapBundle/ServiceBinding/RpcLiteralRequestMessageBinder.php b/src/BeSimple/SoapBundle/ServiceBinding/RpcLiteralRequestMessageBinder.php index e058547..6f8b36e 100644 --- a/src/BeSimple/SoapBundle/ServiceBinding/RpcLiteralRequestMessageBinder.php +++ b/src/BeSimple/SoapBundle/ServiceBinding/RpcLiteralRequestMessageBinder.php @@ -98,7 +98,7 @@ class RpcLiteralRequestMessageBinder implements MessageBinderInterface $this->messageRefs[$hash] = $message; $messageBinder = new MessageBinder($message); - foreach ($this->definitionComplexTypes[$phpType] as $type) { + foreach ($this->definitionComplexTypes[$phpType]['properties'] as $type) { $property = $type->getName(); $value = $messageBinder->readProperty($property); diff --git a/src/BeSimple/SoapBundle/ServiceBinding/RpcLiteralResponseMessageBinder.php b/src/BeSimple/SoapBundle/ServiceBinding/RpcLiteralResponseMessageBinder.php index dfdd509..34d1edd 100644 --- a/src/BeSimple/SoapBundle/ServiceBinding/RpcLiteralResponseMessageBinder.php +++ b/src/BeSimple/SoapBundle/ServiceBinding/RpcLiteralResponseMessageBinder.php @@ -83,7 +83,7 @@ class RpcLiteralResponseMessageBinder implements MessageBinderInterface } $messageBinder = new MessageBinder($message); - foreach ($this->definitionComplexTypes[$phpType] as $type) { + foreach ($this->definitionComplexTypes[$phpType]['properties'] as $type) { $property = $type->getName(); $value = $messageBinder->readProperty($property); diff --git a/src/BeSimple/SoapBundle/ServiceDefinition/Strategy/ComplexType.php b/src/BeSimple/SoapBundle/ServiceDefinition/Strategy/ComplexType.php index ab824ad..d38d871 100644 --- a/src/BeSimple/SoapBundle/ServiceDefinition/Strategy/ComplexType.php +++ b/src/BeSimple/SoapBundle/ServiceDefinition/Strategy/ComplexType.php @@ -84,6 +84,6 @@ class ComplexType extends AbstractComplexTypeStrategy $complexType->appendChild($all); $this->getContext()->getSchema()->appendChild($complexType); - $this->definition->addDefinitionComplexType($type, $definitionComplexType); + $this->definition->addDefinitionComplexType($classname, $definitionComplexType); } }