【发布时间】:2016-08-01 23:21:41
【问题描述】:
在 NodeJS 中使用“soap”包使用 SOAP Web 服务时。像这样:
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);
});
});
如何获取对MyFunction 的响应的HTTP 标头?具体来说,我想要 HTTP Header 中的 Cookie 参数。
这是 Node/Express 可以做到的吗?或者我需要另一个包来实现这个吗?
提前致谢。
【问题讨论】:
标签: node.js web-services http soap http-headers