Skip to content
Browse files

[UPDATE] php doc fix for SOAPHeader informations

  • Loading branch information...
1 parent b61dfdb commit b4724348b2b227ba702a958cf55eb63f1f5d17c8 @mikaelcom committed
Showing with 8 additions and 6 deletions.
  1. +8 −6 WsdlToPhpGenerator.php
View
14 WsdlToPhpGenerator.php
@@ -2461,7 +2461,9 @@ protected function manageWsdlNodeExtension($_wsdlLocation = '',DOMNode $_domNode
* @uses WsdlToPhpGenerator::getStruct()
* @uses WsdlToPhpGenerator::getGlobal()
* @uses WsdlToPhpGenerator::setGlobal()
+ * @uses WsdlToPhpGenerator::getServiceFunction()
* @uses WsdlToPhpModel::getPackagedName()
+ * @uses WsdlToPhpModel::getMetaValue()
* @uses DOMElement::getAttribute()
* @uses DOMElement::hasAttribute()
* @uses DOMXPath::query()
@@ -2522,7 +2524,7 @@ protected function manageWsdlNodeHeader($_wsdlLocation = '',DOMNode $_domNode,$_
/**
* Find it in the wsdls and avoid mutliple searches for the same message part
*/
- if(!empty($headerName) && !empty($headerMessage))
+ if(!empty($headerName) && !empty($headerMessage) && !in_array($headerName,$this->getServiceFunction($parentNode->getAttribute('name'))->getMetaValue('SOAPHeaderNames',array())))
{
/**
* Indicate the required header name
@@ -2604,12 +2606,12 @@ protected function manageWsdlNodeHeader($_wsdlLocation = '',DOMNode $_domNode,$_
}
}
}
+ /**
+ * Indicate the required header type
+ */
+ $this->addServiceFunctionMeta($parentNode->getAttribute('name'),'SOAPHeaderTypes',array(
+ $headerType));
}
- /**
- * Indicate the required header type
- */
- $this->addServiceFunctionMeta($parentNode->getAttribute('name'),'SOAPHeaderTypes',array(
- $headerType));
}
}
}

0 comments on commit b472434

Please sign in to comment.
Something went wrong with that request. Please try again.