wgu-dss
v0.2.0
Published
wgu-dss
Downloads
21
Maintainers
Readme
wgu-dss
DSS SOAP connector module for the WGU Service layer
Install
npm install wgu-dss
Usage
var restify = require('restify');
var wguDss = require('wgu-dss');
module.exports = function( server )
{
server.get('/some/path', function(req, res, next)
{
wguDss.load('./wsdl/test.wsdl', function(err, client){
//use the client
return next();
});
});
}
Environment Variables
DSS_CLIENT_USER
WSSecurity username. If this variable is set the clients will connect using WSSecurity.
DSS_CLIENT_PASSWORD
WSSecurity password.
Exports
clients
an object containing previously loaded/cached clients keyed by their filename sans .wsdl
dirs
an object containing previously loaded/cached clients from a specific directory.
load( file, callback )
file is the path to the wsdl. The callback has 2 parameters (err, client), if wsdl is loaded err will be null.
loadDir( dir, callback )
dir is the path to the directory containing the wsdls. Callback has 2 parameters (err, clients)