var AutoCompleteService=function() {
AutoCompleteService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
AutoCompleteService.prototype={
GetItems:function(Term,CommandName,CommandArgument,succeededCallback, failedCallback, userContext) {
return this._invoke(AutoCompleteService.get_path(), 'GetItems',true,{Term:Term,CommandName:CommandName,CommandArgument:CommandArgument},succeededCallback,failedCallback,userContext); }}
AutoCompleteService.registerClass('AutoCompleteService',Sys.Net.WebServiceProxy);
AutoCompleteService._staticInstance = new AutoCompleteService();
AutoCompleteService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; AutoCompleteService._staticInstance._path = value; }
AutoCompleteService.get_path = function() { return AutoCompleteService._staticInstance._path; }
AutoCompleteService.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); }
AutoCompleteService._staticInstance._timeout = value; }
AutoCompleteService.get_timeout = function() { 
return AutoCompleteService._staticInstance._timeout; }
AutoCompleteService.set_defaultUserContext = function(value) { 
AutoCompleteService._staticInstance._userContext = value; }
AutoCompleteService.get_defaultUserContext = function() { 
return AutoCompleteService._staticInstance._userContext; }
AutoCompleteService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; AutoCompleteService._staticInstance._succeeded = value; }
AutoCompleteService.get_defaultSucceededCallback = function() { 
return AutoCompleteService._staticInstance._succeeded; }
AutoCompleteService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; AutoCompleteService._staticInstance._failed = value; }
AutoCompleteService.get_defaultFailedCallback = function() { 
return AutoCompleteService._staticInstance._failed; }
AutoCompleteService.set_path("/CMS/Feeds/AutoComplete.asmx");
AutoCompleteService.GetItems= function(Term,CommandName,CommandArgument,onSuccess,onFailed,userContext) {AutoCompleteService._staticInstance.GetItems(Term,CommandName,CommandArgument,onSuccess,onFailed,userContext); }
