Node.js nodejssoap-pfx
我正试图使用此项目使用SOAP服务器,并且我有pfx文件要进行身份验证,但当我这样做时: var soap=require('soap'); var fs=需要('fs')Node.js nodejssoap-pfx,node.js,web-services,soap,Node.js,Web Services,Soap,我正试图使用此项目使用SOAP服务器,并且我有pfx文件要进行身份验证,但当我这样做时: var soap=require('soap'); var fs=需要('fs') 客户端已创建,找到了我的方法,但当我调用我收到403时,我会做错什么?我按照本教程的说明获取密钥: 在设置凭据(如自述文件)之后: var url = 'https://service.com/method.asmx?WSDL'; soap.createClient(url, {wsdl_options: {rejectUn
客户端已创建,找到了我的方法,但当我调用我收到403时,我会做错什么?我按照本教程的说明获取密钥: 在设置凭据(如自述文件)之后:
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);
});
});