var Geocode=function() {
Geocode.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Geocode.prototype={
GeocodeAddress:function(contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(Geocode.get_path(), 'GeocodeAddress',false,{contextKey:contextKey},succeededCallback,failedCallback,userContext); }}
Geocode.registerClass('Geocode',Sys.Net.WebServiceProxy);
Geocode._staticInstance = new Geocode();
Geocode.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Geocode._staticInstance._path = value; }
Geocode.get_path = function() { return Geocode._staticInstance._path; }
Geocode.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); }
Geocode._staticInstance._timeout = value; }
Geocode.get_timeout = function() { 
return Geocode._staticInstance._timeout; }
Geocode.set_defaultUserContext = function(value) { 
Geocode._staticInstance._userContext = value; }
Geocode.get_defaultUserContext = function() { 
return Geocode._staticInstance._userContext; }
Geocode.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Geocode._staticInstance._succeeded = value; }
Geocode.get_defaultSucceededCallback = function() { 
return Geocode._staticInstance._succeeded; }
Geocode.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Geocode._staticInstance._failed = value; }
Geocode.get_defaultFailedCallback = function() { 
return Geocode._staticInstance._failed; }
Geocode.set_path("/hklkartta/Geocode.asmx");
Geocode.GeocodeAddress= function(contextKey,onSuccess,onFailed,userContext) {Geocode._staticInstance.GeocodeAddress(contextKey,onSuccess,onFailed,userContext); }
