Nodejs SOAP pfx

时间:2015-12-02 12:12:50

标签: node.js web-services soap

我正在尝试使用此项目https://github.com/vpulim/node-soap来使用SOAP服务器并且我有pfx文件进行身份验证,但是当我这样做时:

var soap = require(' soap'); var fs = require(' fs');

var url = 'https://service.com/method.asmx?WSDL';
soap.createClient(url, {wsdl_options: {rejectUnauthorized: false, pfx:     fs.readFileSync('C:/file.pfx'), strictSSL: false, passphrase: 'passwor'} },
  function(err, client) {
    var args = { name: 'stack' };
    client.test(args, function (err, result, body) {
      console.log(err);
      console.log(result);
      console.log(body);
  });
});

客户端已创建,找到了我的方法,但是当我打电话给我收到403时,我做错了什么?

1 个答案:

答案 0 :(得分:2)