var CustomAuthenticationService=function() {
CustomAuthenticationService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CustomAuthenticationService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return CustomAuthenticationService._staticInstance.get_path();},
Login:function(userName,password,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Login',false,{userName:userName,password:password},succeededCallback,failedCallback,userContext); },
Logout:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Logout',false,{},succeededCallback,failedCallback,userContext); }}
CustomAuthenticationService.registerClass('CustomAuthenticationService',Sys.Net.WebServiceProxy);
CustomAuthenticationService._staticInstance = new CustomAuthenticationService();
CustomAuthenticationService.set_path = function(value) { CustomAuthenticationService._staticInstance.set_path(value); }
CustomAuthenticationService.get_path = function() { return CustomAuthenticationService._staticInstance.get_path(); }
CustomAuthenticationService.set_timeout = function(value) { CustomAuthenticationService._staticInstance.set_timeout(value); }
CustomAuthenticationService.get_timeout = function() { return CustomAuthenticationService._staticInstance.get_timeout(); }
CustomAuthenticationService.set_defaultUserContext = function(value) { CustomAuthenticationService._staticInstance.set_defaultUserContext(value); }
CustomAuthenticationService.get_defaultUserContext = function() { return CustomAuthenticationService._staticInstance.get_defaultUserContext(); }
CustomAuthenticationService.set_defaultSucceededCallback = function(value) { CustomAuthenticationService._staticInstance.set_defaultSucceededCallback(value); }
CustomAuthenticationService.get_defaultSucceededCallback = function() { return CustomAuthenticationService._staticInstance.get_defaultSucceededCallback(); }
CustomAuthenticationService.set_defaultFailedCallback = function(value) { CustomAuthenticationService._staticInstance.set_defaultFailedCallback(value); }
CustomAuthenticationService.get_defaultFailedCallback = function() { return CustomAuthenticationService._staticInstance.get_defaultFailedCallback(); }
CustomAuthenticationService.set_path("/questionnaire/App_WebService/CustomAuthenticationService.asmx");
CustomAuthenticationService.Login= function(userName,password,onSuccess,onFailed,userContext) {CustomAuthenticationService._staticInstance.Login(userName,password,onSuccess,onFailed,userContext); }
CustomAuthenticationService.Logout= function(onSuccess,onFailed,userContext) {CustomAuthenticationService._staticInstance.Logout(onSuccess,onFailed,userContext); }
