UNPKG

strong-soap

Version:
17 lines (13 loc) 573 B
var soap = require('..').soap; var WSDL = soap.WSDL; var path = require('path'); //user can pass in WSDL options var options = {}; WSDL.open('./wsdls/weather.wsdl', options, //User can traverse the WSDL tree and get to bindings - > operations, services, portTypes, messages, parts and XSD elements/Attributes function(err, wsdl) { var getCityForecastOp = wsdl.definitions.bindings.WeatherSoap.operations.GetCityForecastByZIP; console.log(getCityForecastOp.$name); var service = wsdl.definitions.services['Weather']; console.log(service.$name); });