【发布时间】:2017-08-06 18:44:25
【问题描述】:
我正在使用强肥皂节点模块,我想调用 web 服务,我有 wsdl 文件。
var soap = require('strong-soap').soap;
var WSDL = soap.WSDL;
var path = require('path');
var options = {};
WSDL.open('./wsdls/RateService_v22.wsdl',options,
function(err, wsdl) {
// You should be able to get to any information of this WSDL from this object. Traverse
// the WSDL tree to get bindings, operations, services, portTypes, messages,
// parts, and XSD elements/Attributes.
var service = wsdl.definitions.services['RateService'];
//console.log(service.Definitions.call());
//how to Call rateService ??
});
【问题讨论】:
-
对我的回答有任何反馈吗?
标签: node.js web-services soap wsdl strong-soap