标签: strong-soap

如何通过节点js使用wsdl webservice

我正在使用strong-soap节点模块我想调用webservice,我有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 ??
});
Run Code Online (Sandbox Code Playgroud)

soap wsdl web-services node.js strong-soap

6
推荐指数
2
解决办法
1793
查看次数

标签 统计

node.js ×1

soap ×1

strong-soap ×1

web-services ×1

wsdl ×1