var ComponentService=function() {
ComponentService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ComponentService.prototype={
EditUserRoles:function(userId,roles,succeededCallback, failedCallback, userContext) {
return this._invoke(ComponentService.get_path(), 'EditUserRoles',false,{userId:userId,roles:roles},succeededCallback,failedCallback,userContext); },
GenerateUserRoles:function(userId,succeededCallback, failedCallback, userContext) {
return this._invoke(ComponentService.get_path(), 'GenerateUserRoles',false,{userId:userId},succeededCallback,failedCallback,userContext); }}
ComponentService.registerClass('ComponentService',Sys.Net.WebServiceProxy);
ComponentService._staticInstance = new ComponentService();
ComponentService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; ComponentService._staticInstance._path = value; }
ComponentService.get_path = function() { return ComponentService._staticInstance._path; }
ComponentService.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
ComponentService._staticInstance._timeout = value; }
ComponentService.get_timeout = function() { 
return ComponentService._staticInstance._timeout; }
ComponentService.set_defaultUserContext = function(value) { 
ComponentService._staticInstance._userContext = value; }
ComponentService.get_defaultUserContext = function() { 
return ComponentService._staticInstance._userContext; }
ComponentService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; ComponentService._staticInstance._succeeded = value; }
ComponentService.get_defaultSucceededCallback = function() { 
return ComponentService._staticInstance._succeeded; }
ComponentService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; ComponentService._staticInstance._failed = value; }
ComponentService.get_defaultFailedCallback = function() { 
return ComponentService._staticInstance._failed; }
ComponentService.set_path("/ComponentService.asmx");
ComponentService.EditUserRoles= function(userId,roles,onSuccess,onFailed,userContext) {ComponentService._staticInstance.EditUserRoles(userId,roles,onSuccess,onFailed,userContext); }
ComponentService.GenerateUserRoles= function(userId,onSuccess,onFailed,userContext) {ComponentService._staticInstance.GenerateUserRoles(userId,onSuccess,onFailed,userContext); }

