var GeoNamesService=function() {
GeoNamesService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
GeoNamesService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return GeoNamesService._staticInstance.get_path();},
FindNearbyPostalCode:function(lat,lng,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'FindNearbyPostalCode',false,{lat:lat,lng:lng},succeededCallback,failedCallback,userContext); },
FindNearbyWikipedia:function(lat,lng,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'FindNearbyWikipedia',false,{lat:lat,lng:lng},succeededCallback,failedCallback,userContext); },
FindNearbyWeather:function(lat,lng,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'FindNearbyWeather',false,{lat:lat,lng:lng},succeededCallback,failedCallback,userContext); },
PostalCodeLookup:function(Zip,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'PostalCodeLookup',false,{Zip:Zip},succeededCallback,failedCallback,userContext); }}
GeoNamesService.registerClass('GeoNamesService',Sys.Net.WebServiceProxy);
GeoNamesService._staticInstance = new GeoNamesService();
GeoNamesService.set_path = function(value) { GeoNamesService._staticInstance.set_path(value); }
GeoNamesService.get_path = function() { return GeoNamesService._staticInstance.get_path(); }
GeoNamesService.set_timeout = function(value) { GeoNamesService._staticInstance.set_timeout(value); }
GeoNamesService.get_timeout = function() { return GeoNamesService._staticInstance.get_timeout(); }
GeoNamesService.set_defaultUserContext = function(value) { GeoNamesService._staticInstance.set_defaultUserContext(value); }
GeoNamesService.get_defaultUserContext = function() { return GeoNamesService._staticInstance.get_defaultUserContext(); }
GeoNamesService.set_defaultSucceededCallback = function(value) { GeoNamesService._staticInstance.set_defaultSucceededCallback(value); }
GeoNamesService.get_defaultSucceededCallback = function() { return GeoNamesService._staticInstance.get_defaultSucceededCallback(); }
GeoNamesService.set_defaultFailedCallback = function(value) { GeoNamesService._staticInstance.set_defaultFailedCallback(value); }
GeoNamesService.get_defaultFailedCallback = function() { return GeoNamesService._staticInstance.get_defaultFailedCallback(); }
GeoNamesService.set_path("/GeoNamesService.asmx");
GeoNamesService.FindNearbyPostalCode= function(lat,lng,onSuccess,onFailed,userContext) {GeoNamesService._staticInstance.FindNearbyPostalCode(lat,lng,onSuccess,onFailed,userContext); }
GeoNamesService.FindNearbyWikipedia= function(lat,lng,onSuccess,onFailed,userContext) {GeoNamesService._staticInstance.FindNearbyWikipedia(lat,lng,onSuccess,onFailed,userContext); }
GeoNamesService.FindNearbyWeather= function(lat,lng,onSuccess,onFailed,userContext) {GeoNamesService._staticInstance.FindNearbyWeather(lat,lng,onSuccess,onFailed,userContext); }
GeoNamesService.PostalCodeLookup= function(Zip,onSuccess,onFailed,userContext) {GeoNamesService._staticInstance.PostalCodeLookup(Zip,onSuccess,onFailed,userContext); }
