From 3513e1c4b76051ad3bfb0a8ba4c891b6d9d8ae55 Mon Sep 17 00:00:00 2001 From: Grigoriy Zander Date: Wed, 24 Aug 2016 12:33:24 +0300 Subject: [PATCH] added extraWsdlHeaders to request method --- lib/client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index cd940e0aa..27c7181e8 100644 --- a/lib/client.js +++ b/lib/client.js @@ -243,11 +243,12 @@ Client.prototype._invoke = function(method, args, location, callback, options, e "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " + encoding + this.wsdl.xmlnsInEnvelope + '>' + - ((self.soapHeaders || self.security) ? + ((self.soapHeaders || self.security || options.extraWsdlHeaders) ? ( "<" + envelopeKey + ":Header>" + (self.soapHeaders ? self.soapHeaders.join("\n") : "") + (self.security && !self.security.postProcess ? self.security.toXML() : "") + + (options.extraWsdlHeaders ? this.wsdl.objectToXML(options.extraWsdlHeaders) : "") + "" ) :