wgu-powercenter
v0.1.3
Published
wgu-powercenter
Downloads
5
Maintainers
Readme
wgu-powercenter
Powercenter SOAP connector module for the WGU Service layer
Install
npm install wgu-powercenter
Usage
var restify = require('restify');
var wguPowercenter = require('wgu-powercenter');
module.exports = function( server )
{
server.get('/some/path', function(req, res, next)
{
wguPowercenter.load('./wsdl/test.wsdl', function(err, client){
//use the client
return next();
});
});
}
Environment Variables
PC_CLIENT_USER
WSSecurity username. If this variable is set the clients will connect using WSSecurity.
PC_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)