/** * @inheritdoc */ public function generateSoapHeaderIfNeeded(DOMDocument $DOMDocument, $targetNamespace, $soapHeaderMessage = '', Parameter $header = null, $soapVersion) { if ($header) { return XMLAttributeHelper::forDOM($DOMDocument)->createElementWithAttributes($soapVersion . ':header', array('use' => 'encoded', 'namespace' => $targetNamespace, 'encodingStyle' => 'http://schemas.xmlsoap.org/soap/encoding/', 'part' => $header->getNode()->getSanitizedName(), 'message' => $soapHeaderMessage)); } return null; }
/** * @param string $methodName * @param string $headerSuffix * @param Parameter|null $parameter */ private function messageHeaderIfNeeded($methodName, $headerSuffix, Parameter $parameter = null) { if ($parameter) { $messageHeaderElement = $this->messageParts($methodName . $headerSuffix, $parameter->getNode()); $this->definitionsRootNode->appendChild($messageHeaderElement); } }