1.26.0 • Published 6 years ago

soap-as-promised v1.26.0

Weekly downloads
3,045
License
MIT
Repository
github
Last release
6 years ago

soap-as-promised Circle CI

Convert all node-soap methods to promises. Inspired by soap-q, but it doesn't add any suffix to methods, the client has the same interface as exposed by the original soap module.

Installation

npm install soap-as-promised

Usage

const soap = require('soap-as-promised');

soap.createClient('http://example.org/wsdl')
    .then((client) => client.myAwesomeSoapMethod({param: true}))
    .then((result) => console.log(`The result was: ${result}`))
    .catch((error) => console.error(`There was an error! ${error}`));

Important!

There are a couple of things that behave different from the original soap client:

  • Null responses return an object with like this {return: null, _rawResponse: "<SOAP RETURNED BY THE SERVICE>"}
  • String responses return an object like this: {return: 'String response', _rawResponse: "<SOAP RETURNED BY THE SERVICE>"}
  • When specifying endpoint as an extra parameter you need to pass the options parameter (at least null or {})
1.26.0

6 years ago

1.14.3

7 years ago

1.23.0

7 years ago

1.19.1

8 years ago

1.19.0

8 years ago

1.16.0

9 years ago

1.15.1

9 years ago

1.15.0

9 years ago

1.14.2

9 years ago

1.14.1

9 years ago

1.14.0

9 years ago

1.6.0

9 years ago

1.5.0

10 years ago

1.4.1

10 years ago

1.4.0

10 years ago

1.3.0

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago