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