Skip to content

Commit

Permalink
added extraWsdlHeaders to request method
Browse files Browse the repository at this point in the history
  • Loading branch information
Grigoriy Zander committed Aug 24, 2016
1 parent 57c64f5 commit 3513e1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) : "") +
"</" + envelopeKey + ":Header>"
)
:
Expand Down

0 comments on commit 3513e1c

Please sign in to comment.