Skip to content

Latest commit

History

35 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

wsdlrdr

a simple wsdl parser, with promises

Support

Buy me a Coffee

how to get

install from npm

npm i wsdlrdr

available methods

getNamespaces

returns a collection with all available namespaces

actiondescriptiontype
responseall available namespacesarray

getMethodParamsByName

returns all response/request parameter for a given function name

actiondescriptiontype
paramsmethodNamestring
responsemethodParamsobject

getAllFunctions

get all in wsdl available functions as a array

actiondescriptiontype
responseall available function namesarray

getXmlDataAsJson

returns data from the given XML as JSON

actiondescriptiontype
paramsxmlstring
responseconverted xmljson

how to use

const Wsdlrdr = require('wsdlrdr');
const params = { host: 'hostname.com', wsdl: '/path/to/wsdl' };
const options = { secure: true // https on
failOnWrongContentType: true // if no xml/wsdl
}; // get all functions listet in wsdl
Wsdlrdr.getAllFunctions(params, options)
.then((funcArray) => { console.log(funcArray); })
.catch((err) => { throw new Error(err) });

About

a simple wsdl parser

Topics

Resources

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages