Type.registerNamespace('GeoSelectorWS');
GeoSelectorWS.Service=function() {
GeoSelectorWS.Service.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
GeoSelectorWS.Service.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return GeoSelectorWS.Service._staticInstance.get_path();},
GetData:function(type,code,hasStates,noAirports,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetData',false,{type:type,code:code,hasStates:hasStates,noAirports:noAirports},succeededCallback,failedCallback,userContext); },
GetGeoStack:function(code,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetGeoStack',false,{code:code},succeededCallback,failedCallback,userContext); }}
GeoSelectorWS.Service.registerClass('GeoSelectorWS.Service',Sys.Net.WebServiceProxy);
GeoSelectorWS.Service._staticInstance = new GeoSelectorWS.Service();
GeoSelectorWS.Service.set_path = function(value) { GeoSelectorWS.Service._staticInstance.set_path(value); }
GeoSelectorWS.Service.get_path = function() { return GeoSelectorWS.Service._staticInstance.get_path(); }
GeoSelectorWS.Service.set_timeout = function(value) { GeoSelectorWS.Service._staticInstance.set_timeout(value); }
GeoSelectorWS.Service.get_timeout = function() { return GeoSelectorWS.Service._staticInstance.get_timeout(); }
GeoSelectorWS.Service.set_defaultUserContext = function(value) { GeoSelectorWS.Service._staticInstance.set_defaultUserContext(value); }
GeoSelectorWS.Service.get_defaultUserContext = function() { return GeoSelectorWS.Service._staticInstance.get_defaultUserContext(); }
GeoSelectorWS.Service.set_defaultSucceededCallback = function(value) { GeoSelectorWS.Service._staticInstance.set_defaultSucceededCallback(value); }
GeoSelectorWS.Service.get_defaultSucceededCallback = function() { return GeoSelectorWS.Service._staticInstance.get_defaultSucceededCallback(); }
GeoSelectorWS.Service.set_defaultFailedCallback = function(value) { GeoSelectorWS.Service._staticInstance.set_defaultFailedCallback(value); }
GeoSelectorWS.Service.get_defaultFailedCallback = function() { return GeoSelectorWS.Service._staticInstance.get_defaultFailedCallback(); }
GeoSelectorWS.Service.set_enableJsonp = function(value) { GeoSelectorWS.Service._staticInstance.set_enableJsonp(value); }
GeoSelectorWS.Service.get_enableJsonp = function() { return GeoSelectorWS.Service._staticInstance.get_enableJsonp(); }
GeoSelectorWS.Service.set_jsonpCallbackParameter = function(value) { GeoSelectorWS.Service._staticInstance.set_jsonpCallbackParameter(value); }
GeoSelectorWS.Service.get_jsonpCallbackParameter = function() { return GeoSelectorWS.Service._staticInstance.get_jsonpCallbackParameter(); }
GeoSelectorWS.Service.set_path("/GeoSelectorWS.asmx");
GeoSelectorWS.Service.GetData= function(type,code,hasStates,noAirports,onSuccess,onFailed,userContext) {GeoSelectorWS.Service._staticInstance.GetData(type,code,hasStates,noAirports,onSuccess,onFailed,userContext); }
GeoSelectorWS.Service.GetGeoStack= function(code,onSuccess,onFailed,userContext) {GeoSelectorWS.Service._staticInstance.GetGeoStack(code,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(GeoSelectorWS.GeoData) === 'undefined') {
GeoSelectorWS.GeoData=gtc("GeoSelectorWS.GeoData");
GeoSelectorWS.GeoData.registerClass('GeoSelectorWS.GeoData');
}
if (typeof(GeoSelectorWS.GeoType) === 'undefined') {
GeoSelectorWS.GeoType = function() { throw Error.invalidOperation(); }
GeoSelectorWS.GeoType.prototype = {World: 0,Continent: 1,Country: 2,State: 3,City: 4,Airport: 5}
GeoSelectorWS.GeoType.registerEnum('GeoSelectorWS.GeoType', true);
}

