1.0.7 • Published 3 years ago

wsdl-next v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

npm version npm downloads npm downloads

Installing

Install with npm

npm install wsdl-next

Install with yarn

yarn add wsdl-next

Basic Usage

Create WSDL

WsdlNext.create(url: string)

wsdl = await WsdlNext.create('http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL');

getNamespaces

Returns a collection with all available namespaces

const result = await wsdl.getNamespaces();

getMethodParamsByName

Returns all response/request parameter for a given function name

{
  params: {
    params: xmldoc.XmlAttributes | xmldoc.XmlAttributes[], 
    name: string,
    namespace: string,
  },
  response: {
    params: xmldoc.XmlAttributes | xmldoc.XmlAttributes[],
    name: string,
    namespace: string,
  }
}
const result = await wsdl.getMethodParamsByName('CountryName');

getAllMethods:

Returns all in WSDL available methods

 const result = await wsdl.getAllMethods();

getXmlDataAsJson:

Returns data from the given XML as JSON

const result = WsdlNext.getXmlDataAsJson(xmlResponse);

Credits

wsdl-next was inspired by wsdlrdr, rewritten in TypeScript for further improvement.

License

wsdl-next is released under the MIT License. See the bundled LICENSE file for details.

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago