wgu-dss

0.2.0 • Public • Published

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)

Package Sidebar

Install

npm i wgu-dss

Weekly Downloads

1

Version

0.2.0

License

WGU

Last publish

Collaborators

  • steele