我正在尝试使用node-soap通过 https 获取 WSDL 文件
这是我的尝试:
ldap.getEmpowerments = function(uid) {
return new Promise(function(resolve, reject) {
var url = 'https://yradeowshabil.corp.leroymerlin.com/adeo-ws-habil/AccessManagementService?WSDL'
createClient(url).then( function(client) {
console.log(client.describe);
}, function(error) {
console.error('habilitation client failed', error);
});
});
};
这给了我输出:
> hablitation client failed
> [Error: 140274398734112:error:140773F2:SSL
> routines:SSL23_GET_SERVER_HELLO:sslv3 alert unexpected
> message:../deps/openssl/openssl/ssl/s23_clnt.c:770: ]
为了与 wsdl 文件建立通信,我有两个必需的证书。
我尝试了 setSecurity 方法,但我的客户端从未创建,所以它没用。
根据文档,我可以在 createClient 方法中添加一些选项并覆盖请求对象或 httpClient。问题是没有关于如何做到这一点的解释。我该怎么做,并使用 ssl 设置我的自定义请求?
谢谢你的帮助。