a simple wsdl parser, with promises
install from npm
npm i wsdlrdr
returns a collection with all available namespaces
action | description | type |
---|---|---|
response | all available namespaces | array |
returns all response/request parameter for a given function name
action | description | type |
---|---|---|
params | methodName | string |
response | methodParams | object |
get all in wsdl available functions as a array
action | description | type |
---|---|---|
response | all available function names | array |
returns data from the given XML as JSON
action | description | type |
---|---|---|
params | xml | string |
response | converted xml | json |
var Wsdlrdr = require('wsdlrdr');
var params = { host: 'hostname.com', wsdl: '/path/to/wsdl' };
var options = { secure: true }; // https on
//get all functions listet in wsdl
Wsdlrdr.getAllFunctions(params, options)
.then((funcArray) => { console.log(funcArray); })
.catch((err) => { throw new Error(err) });