1.0.0 • Published 8 years ago

simple-soap v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

simple-soap

Build Status npm version License

Simplified soap client

const simpleSoap = require('simple-soap')
const config = {
  url: 'https://example.com/soap/server',
  username: 'test',
  password: 'test',
  method: 'Method'
}
simpleSoap(config)
  .then(res => console.log(res))
  .catch(err => console.error(err))

Wrapper over the node-soap client using a promise interface.

Installation

npm install --save simple-soap

Usage

simpleSoap(config[, params])

config

Configuration object. Required properties:

  • url: SOAP endpoint
  • username: Basic auth username
  • password: Basic auth password
  • method: SOAP action/method

Optional properties:

params

Optional object of params to passed to the method call.

Author

© 2016 Tom Vincent git@tlvince.com (https://tlvince.com)

License

Released under the MIT license.