Type.registerNamespace('Dura.Ajax');
Dura.Ajax.OneYellowWS=function() {
Dura.Ajax.OneYellowWS.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Dura.Ajax.OneYellowWS.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Dura.Ajax.OneYellowWS._staticInstance.get_path();},
GetAutoKeyWords:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAutoKeyWords',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
GetCities:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCities',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
CheckCity:function(city,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CheckCity',false,{city:city},succeededCallback,failedCallback,userContext); }}
Dura.Ajax.OneYellowWS.registerClass('Dura.Ajax.OneYellowWS',Sys.Net.WebServiceProxy);
Dura.Ajax.OneYellowWS._staticInstance = new Dura.Ajax.OneYellowWS();
Dura.Ajax.OneYellowWS.set_path = function(value) { Dura.Ajax.OneYellowWS._staticInstance.set_path(value); }
Dura.Ajax.OneYellowWS.get_path = function() { return Dura.Ajax.OneYellowWS._staticInstance.get_path(); }
Dura.Ajax.OneYellowWS.set_timeout = function(value) { Dura.Ajax.OneYellowWS._staticInstance.set_timeout(value); }
Dura.Ajax.OneYellowWS.get_timeout = function() { return Dura.Ajax.OneYellowWS._staticInstance.get_timeout(); }
Dura.Ajax.OneYellowWS.set_defaultUserContext = function(value) { Dura.Ajax.OneYellowWS._staticInstance.set_defaultUserContext(value); }
Dura.Ajax.OneYellowWS.get_defaultUserContext = function() { return Dura.Ajax.OneYellowWS._staticInstance.get_defaultUserContext(); }
Dura.Ajax.OneYellowWS.set_defaultSucceededCallback = function(value) { Dura.Ajax.OneYellowWS._staticInstance.set_defaultSucceededCallback(value); }
Dura.Ajax.OneYellowWS.get_defaultSucceededCallback = function() { return Dura.Ajax.OneYellowWS._staticInstance.get_defaultSucceededCallback(); }
Dura.Ajax.OneYellowWS.set_defaultFailedCallback = function(value) { Dura.Ajax.OneYellowWS._staticInstance.set_defaultFailedCallback(value); }
Dura.Ajax.OneYellowWS.get_defaultFailedCallback = function() { return Dura.Ajax.OneYellowWS._staticInstance.get_defaultFailedCallback(); }
Dura.Ajax.OneYellowWS.set_path("/WS/OneYellowWS.asmx");
Dura.Ajax.OneYellowWS.GetAutoKeyWords= function(prefixText,count,onSuccess,onFailed,userContext) {Dura.Ajax.OneYellowWS._staticInstance.GetAutoKeyWords(prefixText,count,onSuccess,onFailed,userContext); }
Dura.Ajax.OneYellowWS.GetCities= function(prefixText,count,onSuccess,onFailed,userContext) {Dura.Ajax.OneYellowWS._staticInstance.GetCities(prefixText,count,onSuccess,onFailed,userContext); }
Dura.Ajax.OneYellowWS.CheckCity= function(city,onSuccess,onFailed,userContext) {Dura.Ajax.OneYellowWS._staticInstance.CheckCity(city,onSuccess,onFailed,userContext); }
