Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moszeed/wsdlrdr
a simple wsdl parser
https://github.com/moszeed/wsdlrdr
javascript wsdl
Last synced: about 21 hours ago
JSON representation
a simple wsdl parser
- Host: GitHub
- URL: https://github.com/moszeed/wsdlrdr
- Owner: moszeed
- Created: 2015-09-30T14:15:59.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-30T08:26:09.000Z (over 3 years ago)
- Last Synced: 2024-04-24T02:42:55.341Z (7 months ago)
- Topics: javascript, wsdl
- Language: JavaScript
- Size: 33.2 KB
- Stars: 6
- Watchers: 2
- Forks: 12
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wsdlrdr
a simple wsdl parser, with promises##### Support
[Buy me a Coffee](https://www.patreon.com/moszeed)
### how to get
install from npmnpm i wsdlrdr
## available methods
#### *getNamespaces*
returns a collection with all available namespaces|action|description|type|
|--------|--------|-------|
|**response**|all available namespaces|array|#### *getMethodParamsByName*
returns all response/request parameter for a given function name
|action|description|type|
|--------|--------|-------|
|**params**|methodName|string|
|**response**|methodParams|object|#### *getAllFunctions*
get all in wsdl available functions as a array
|action|description|type|
|--------|--------|-------|
|**response**|all available function names|array|#### *getXmlDataAsJson*
returns data from the given XML as JSON
|action|description|type|
|--------|--------|-------|
|**params**|xml|string|
|**response**|converted xml|json|## 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) });