Type.registerNamespace('Imap.WebServices');
Imap.WebServices.GeonamesSvc=function() {
Imap.WebServices.GeonamesSvc.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Imap.WebServices.GeonamesSvc.prototype={
GetCountries:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Imap.WebServices.GeonamesSvc.get_path(), 'GetCountries',false,{},succeededCallback,failedCallback,userContext); },
GetLocationDetailsByPostcode:function(postCode,countryCode,exactMatch,succeededCallback, failedCallback, userContext) {
return this._invoke(Imap.WebServices.GeonamesSvc.get_path(), 'GetLocationDetailsByPostcode',false,{postCode:postCode,countryCode:countryCode,exactMatch:exactMatch},succeededCallback,failedCallback,userContext); },
GetIndianLocationDetailsByPostcode:function(postCode,exactMatch,succeededCallback, failedCallback, userContext) {
return this._invoke(Imap.WebServices.GeonamesSvc.get_path(), 'GetIndianLocationDetailsByPostcode',false,{postCode:postCode,exactMatch:exactMatch},succeededCallback,failedCallback,userContext); },
GetPostCodesByLocation:function(latitude,longitude,succeededCallback, failedCallback, userContext) {
return this._invoke(Imap.WebServices.GeonamesSvc.get_path(), 'GetPostCodesByLocation',false,{latitude:latitude,longitude:longitude},succeededCallback,failedCallback,userContext); }}
Imap.WebServices.GeonamesSvc.registerClass('Imap.WebServices.GeonamesSvc',Sys.Net.WebServiceProxy);
Imap.WebServices.GeonamesSvc._staticInstance = new Imap.WebServices.GeonamesSvc();
Imap.WebServices.GeonamesSvc.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Imap.WebServices.GeonamesSvc._staticInstance._path = value; }
Imap.WebServices.GeonamesSvc.get_path = function() { return Imap.WebServices.GeonamesSvc._staticInstance._path; }
Imap.WebServices.GeonamesSvc.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); }
Imap.WebServices.GeonamesSvc._staticInstance._timeout = value; }
Imap.WebServices.GeonamesSvc.get_timeout = function() { 
return Imap.WebServices.GeonamesSvc._staticInstance._timeout; }
Imap.WebServices.GeonamesSvc.set_defaultUserContext = function(value) { 
Imap.WebServices.GeonamesSvc._staticInstance._userContext = value; }
Imap.WebServices.GeonamesSvc.get_defaultUserContext = function() { 
return Imap.WebServices.GeonamesSvc._staticInstance._userContext; }
Imap.WebServices.GeonamesSvc.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Imap.WebServices.GeonamesSvc._staticInstance._succeeded = value; }
Imap.WebServices.GeonamesSvc.get_defaultSucceededCallback = function() { 
return Imap.WebServices.GeonamesSvc._staticInstance._succeeded; }
Imap.WebServices.GeonamesSvc.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Imap.WebServices.GeonamesSvc._staticInstance._failed = value; }
Imap.WebServices.GeonamesSvc.get_defaultFailedCallback = function() { 
return Imap.WebServices.GeonamesSvc._staticInstance._failed; }
Imap.WebServices.GeonamesSvc.set_path("/WebServices/GeonamesSvc.asmx");
Imap.WebServices.GeonamesSvc.GetCountries= function(onSuccess,onFailed,userContext) {Imap.WebServices.GeonamesSvc._staticInstance.GetCountries(onSuccess,onFailed,userContext); }
Imap.WebServices.GeonamesSvc.GetLocationDetailsByPostcode= function(postCode,countryCode,exactMatch,onSuccess,onFailed,userContext) {Imap.WebServices.GeonamesSvc._staticInstance.GetLocationDetailsByPostcode(postCode,countryCode,exactMatch,onSuccess,onFailed,userContext); }
Imap.WebServices.GeonamesSvc.GetIndianLocationDetailsByPostcode= function(postCode,exactMatch,onSuccess,onFailed,userContext) {Imap.WebServices.GeonamesSvc._staticInstance.GetIndianLocationDetailsByPostcode(postCode,exactMatch,onSuccess,onFailed,userContext); }
Imap.WebServices.GeonamesSvc.GetPostCodesByLocation= function(latitude,longitude,onSuccess,onFailed,userContext) {Imap.WebServices.GeonamesSvc._staticInstance.GetPostCodesByLocation(latitude,longitude,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('AjaxControlToolkit');
if (typeof(AjaxControlToolkit.CascadingDropDownNameValue) === 'undefined') {
AjaxControlToolkit.CascadingDropDownNameValue=gtc("AjaxControlToolkit.CascadingDropDownNameValue");
AjaxControlToolkit.CascadingDropDownNameValue.registerClass('AjaxControlToolkit.CascadingDropDownNameValue');
}
Type.registerNamespace('Imap.Geonames');
if (typeof(Imap.Geonames.PostalCodeItemCollection) === 'undefined') {
Imap.Geonames.PostalCodeItemCollection=gtc("Imap.Geonames.PostalCodeItemCollection");
Imap.Geonames.PostalCodeItemCollection.registerClass('Imap.Geonames.PostalCodeItemCollection');
}

