Simple WSDL parser
npm install wsdl-nextwsdl-next is a simple WSDL parcer for Node.js



Install with npm
``shell`
npm install wsdl-next
Install with yarn
`shell`
yarn add wsdl-next
WsdlNext.create(url: string)
`ts`
wsdl = await WsdlNext.create('http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL');
Returns a collection with all available namespaces
`ts`
const result = await wsdl.getNamespaces();
Returns all response/request parameter for a given function name
`ts`
{
params: {
params: xmldoc.XmlAttributes | xmldoc.XmlAttributes[],
name: string,
namespace: string,
},
response: {
params: xmldoc.XmlAttributes | xmldoc.XmlAttributes[],
name: string,
namespace: string,
}
}
`ts`
const result = await wsdl.getMethodParamsByName('CountryName');
Returns all in WSDL available methods
`ts`
const result = await wsdl.getAllMethods();
Returns data from the given XML as JSON
`ts``
const result = WsdlNext.getXmlDataAsJson(xmlResponse);
wsdl-next was inspired by wsdlrdr, rewritten in TypeScript for further improvement.
wsdl-next is released under the MIT License. See the bundled LICENSE file for details.