尝试连接wsdl服务时出现错误

时间:2018-10-22 05:19:23

标签: javascript node.js

尝试在wsdl服务器上进行基本身份验证时。我收到错误403无效的wsdl网址消息。该如何解决?

var soap = require('soap');
var url = 'https://servis.turkiye.gov.tr/services/g2g/kdgm/test/uetdsarizi?wsdl';
var auth = "Basic " + new Buffer("myusername" + ":" + "mypass").toString("base64");

soap.createClient(url, { wsdl_headers: {Authorization: auth} }, function(err, client) {
});

0 个答案:

没有答案