1.0.0 • Published 8 years ago
simple-soap v1.0.0
simple-soap
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 endpointusername
: Basic auth usernamepassword
: Basic auth passwordmethod
: SOAP action/method
Optional properties:
request
: request options
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.
1.0.0
8 years ago