From a50215b6498c346ed0dc67582f0fb1a257478fa7 Mon Sep 17 00:00:00 2001 From: Francis Besset Date: Wed, 27 Feb 2013 17:04:44 +0100 Subject: [PATCH] Fixed bug with Zend Soap --- ServiceDefinition/Dumper/Wsdl.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ServiceDefinition/Dumper/Wsdl.php b/ServiceDefinition/Dumper/Wsdl.php index eeee674..455d382 100644 --- a/ServiceDefinition/Dumper/Wsdl.php +++ b/ServiceDefinition/Dumper/Wsdl.php @@ -39,6 +39,25 @@ class Wsdl extends BaseWsdl return $xmlType ?: $this->addComplexType($type); } + /** + * Translate PHP type into WSDL QName + * + * @param string $type + * @return string QName + */ + public function translateType($type) + { + if (isset($this->classMap[$type])) { + return $this->classMap[$type]; + } + + if ($type[0] == '\\') { + $type = substr($type, 1); + } + + return str_replace('\\', '.', $type); + } + public function addBindingOperationHeader(\DOMElement $bindingOperation, array $headers, array $baseBinding) { foreach ($headers as $header) {