From 9f7ff62449c10cb00c11530fc6506362ad89300e Mon Sep 17 00:00:00 2001 From: Francis Besset Date: Tue, 16 Aug 2011 21:06:10 +0200 Subject: [PATCH] Check if a value is null in RpcLiteralRequestMessageBinder --- ServiceBinding/RpcLiteralRequestMessageBinder.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ServiceBinding/RpcLiteralRequestMessageBinder.php b/ServiceBinding/RpcLiteralRequestMessageBinder.php index cb4f5c6..4d215b4 100644 --- a/ServiceBinding/RpcLiteralRequestMessageBinder.php +++ b/ServiceBinding/RpcLiteralRequestMessageBinder.php @@ -80,6 +80,10 @@ class RpcLiteralRequestMessageBinder implements MessageBinderInterface foreach ($definitionComplexTypes[$phpType] as $type) { $value = $this->processType($type->getValue(), $message->{$type->getName()}, $definitionComplexTypes); + if (null === $value && $type->isNillable()) { + continue; + } + if ($type instanceof PropertyComplexType) { $instanceType->{$type->getOriginalName()} = $value; } elseif ($type instanceof MethodComplexType) {