co-soap

co friendly soap client

Usage no npm install needed!

<script type="module">
  import coSoap from 'https://cdn.skypack.dev/co-soap';
</script>

README

Build Status Coverage Status NPM version

co-soap

co friendly wrapper around Soap client.

Disclaimer

Soap is far from being bug free and it is not well maintained. If you encounter bugs/problems, you are welcome to report them here. However it is highly recommended that you check [Soap issues]((https://github.com/vpulim/node-soap/issues) beforehand if there are issues similar to yours. co-soap will not be endeavouring to fix bugs related to Soap.

Installation

$ npm install co-soap

Example

var cosoap = require('co-soap'),
    co = require('co');

co(function* (){
  var client = yield cosoap.createClient('http://www.dneonline.com/calculator.asmx?WSDL');
  var response = yield client.Add({intA: 5, intB: 10});

  // prints 15
  console.log(response.AddResult);
})();

API

Please see Soap Github page for API details.

License

MIT