//This code is based on a singleton pattern developed by Douglas Crockford (commonly referred
//to as the 'module pattern').
//This pattern keeps your code out of the global namespace, provides publically addressable
//API methods, and supports protected or 'private' data and methods.
//
//     Usage Overview:
//     * Import the RIA scripts into all relevant html pages.
//     * This module acts as a factory to create proxy objects that represent
//       non-primitive parameter types - used when calling the web service api methods.

//Setup the module's namespace (typically, the module namespace will be your domain name)
/*global JMT*/
if (!JMT) {
	var JMT = {};
}

JMT.JMTWebService_EndPoints = function(){
	//private variables and methods:
	//can be accessed only from within JMT.JMTWebService_EndPoints

	//each web service can provide multiple endpoints which correspond to Web Service Provider or Consumer classes in Jade
	var _endpoint = [];
	_endpoint[0] = 'http://www.portotago.co.nz/ria/jadehttp.dll?JMTWebService&serviceName=JMTEDIService&listName=JMTWebService';
	_endpoint[1] = 'http://www.portotago.co.nz/ria/jadehttp.dll?JMTWebService&serviceName=JMTSecureService&listName=JMTWebService';
	_endpoint[2] = 'http://www.portotago.co.nz/ria/jadehttp.dll?JMTWebService&serviceName=JMTUserInterfaceService&listName=JMTWebService';
	return _endpoint;
};

