2015-12-02 44 views
0

我想用這個項目https://github.com/vpulim/node-soap消耗SOAP服務器,我已經PFX文件進行身份驗證,但是當我這樣做:SOAP的NodeJS PFX

VAR肥皂=需要(「皁」); 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,我能做什麼錯?

回答