var OTSService=function() {
OTSService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
OTSService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return OTSService._staticInstance.get_path();},
autoCompleteCities:function(prefixText,succeededCallback, failedCallback, userContext) {
/// <param name="prefixText" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'autoCompleteCities',false,{prefixText:prefixText},succeededCallback,failedCallback,userContext); },
autoCompleteHotels:function(prefixText,succeededCallback, failedCallback, userContext) {
/// <param name="prefixText" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'autoCompleteHotels',false,{prefixText:prefixText},succeededCallback,failedCallback,userContext); }}
OTSService.registerClass('OTSService',Sys.Net.WebServiceProxy);
OTSService._staticInstance = new OTSService();
OTSService.set_path = function(value) {
OTSService._staticInstance.set_path(value); }
OTSService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return OTSService._staticInstance.get_path();}
OTSService.set_timeout = function(value) {
OTSService._staticInstance.set_timeout(value); }
OTSService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return OTSService._staticInstance.get_timeout(); }
OTSService.set_defaultUserContext = function(value) { 
OTSService._staticInstance.set_defaultUserContext(value); }
OTSService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return OTSService._staticInstance.get_defaultUserContext(); }
OTSService.set_defaultSucceededCallback = function(value) { 
 OTSService._staticInstance.set_defaultSucceededCallback(value); }
OTSService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return OTSService._staticInstance.get_defaultSucceededCallback(); }
OTSService.set_defaultFailedCallback = function(value) { 
OTSService._staticInstance.set_defaultFailedCallback(value); }
OTSService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return OTSService._staticInstance.get_defaultFailedCallback(); }
OTSService.set_path("/services/OTSService.asmx");
OTSService.autoCompleteCities= function(prefixText,onSuccess,onFailed,userContext) {
/// <param name="prefixText" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
OTSService._staticInstance.autoCompleteCities(prefixText,onSuccess,onFailed,userContext); }
OTSService.autoCompleteHotels= function(prefixText,onSuccess,onFailed,userContext) {
/// <param name="prefixText" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
OTSService._staticInstance.autoCompleteHotels(prefixText,onSuccess,onFailed,userContext); }
