0.2.0 • Published 10 years ago

wgu-dss v0.2.0

Weekly downloads
41
License
WGU
Repository
bitbucket
Last release
10 years ago

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)

0.2.0

10 years ago

0.1.9

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago