Fixed bug with Zend Soap

This commit is contained in:
Francis Besset 2013-02-27 17:04:44 +01:00
parent 9b585dedb7
commit a50215b649

View File

@ -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) {