我试图使用这个项目https://github.com/vpulim/node-soap来使用SOAP服务器,并且我需要对pfx文件进行身份验证,但是当我这样做时:
var soap =需要量(‘soap’);var fs =需要量(‘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时,我能做错什么呢?
发布于 2015-12-02 13:53:11
我按照本教程的说明获得密钥:http://www.cisco.com/c/en/us/support/docs/security/web-security-appliance/118339-technote-wsa-00.html
在设置凭据后,如sad,自述:https://github.com/vpulim/node-soap#clientsslsecurity
https://stackoverflow.com/questions/34042460
复制相似问题