soap-q

0.1.2 • Public • Published

soap-q

kriskowal's Q support for node-soap.

Inspired by mongoose-q

usage

  • to apply Q with default suffix 'Q':
var soapQ = require('soap-q')(require('soap'));
// shortest way: soap will be loaded by soap-q
var soapQ = require('soap-q')();
  • create Q-applied client:
soapQ.createClientQ("http://example.com/wsdl")
    .then(function(clientQ){
        /* ... use the client's nifty Q methods ...*/
    })
    .fail(function(err){ /* Handle client creation failure */})
  • use Q-applied client methods:
soap.createClientQ(wsdlUrl)
  .then(function(clientQ){
    clientQ.MyMethodQ(args, options).then(function(result){
    /* use result */
    });
  
  })

NOTE: soap-q does not currently return the raw xml.

todo

mongoose-q has safe features that need copying, like

  • ensure soap-q hasn't already been applied to soap
  • allow custom prefix/suffix functionality

Readme

Keywords

Package Sidebar

Install

npm i soap-q

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • novaugust