阅读 WSDL 并打印 javascript 中的 Web 方法
Reading WSDL and printing the web methods in javascript
我想从 URL 中读取 WSDL,并在 Javascript 或 JQuery 中打印 WSDL 中可用的 Web 方法。有什么办法吗?由于浏览器读取“?WSDL”并打印 WSDL,我希望一定有某种方式。
有
https://github.com/strongloop/strong-soap
soap.createClient(wsdlpath, options, function(err, client) {
// client has all the functions i.e., client.Login
// simply iterate client keys that are functions.
for(k of Object.keys(client)){
console.log(typeof client[k]==="function" ? k : '')
}
});
您很可能必须使用此服务器端 (node.js)。我不知道用于浏览器的 SOAP 客户端,我相信它可以为复杂的 WSDL 工作。
我想从 URL 中读取 WSDL,并在 Javascript 或 JQuery 中打印 WSDL 中可用的 Web 方法。有什么办法吗?由于浏览器读取“?WSDL”并打印 WSDL,我希望一定有某种方式。
有
https://github.com/strongloop/strong-soap
soap.createClient(wsdlpath, options, function(err, client) {
// client has all the functions i.e., client.Login
// simply iterate client keys that are functions.
for(k of Object.keys(client)){
console.log(typeof client[k]==="function" ? k : '')
}
});
您很可能必须使用此服务器端 (node.js)。我不知道用于浏览器的 SOAP 客户端,我相信它可以为复杂的 WSDL 工作。