NodeJS - How to get the HTTP header of a SOAP webservice's response
<p>When consuming a SOAP webservice in NodeJS with the '<code>soap</code>' package. Like so:</p>

<pre><code>var soap = require('soap');
var url = 'http://example.com/wsdl?wsdl';
var args = {name: 'value'};
clientsoap.createClient(url, function(err, client) {
    client.MyFunction(args, function(err, result, raw, soapHeader) {
        console.log(result);
    });
});
</code></pre>

<p>How do I get the HTTP header of the response to <code>MyFunction</code>? Specifically, I want the Cookie parameter inside the HTTP Header.</p>

<p>Is this something Node/Express can do? Or Is there another package I need to achieve this?</p>

<p>Thanks in advance.</p>