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