0.1.2 • Published 10 years ago

soap-q v0.1.2

Weekly downloads
3
License
MIT
Repository
-
Last release
10 years ago

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
0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago