Type.registerNamespace('MySpace.Web.Services');
MySpace.Web.Services.GeoLocation=function() {
MySpace.Web.Services.GeoLocation.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MySpace.Web.Services.GeoLocation.prototype={
GetStates:function(countryID,culture,succeededCallback, failedCallback, userContext) {
return this._invoke(MySpace.Web.Services.GeoLocation.get_path(), 'GetStates',false,{countryID:countryID,culture:culture},succeededCallback,failedCallback,userContext); },
GetStatesList:function(countryID,culture,succeededCallback, failedCallback, userContext) {
return this._invoke(MySpace.Web.Services.GeoLocation.get_path(), 'GetStatesList',false,{countryID:countryID,culture:culture},succeededCallback,failedCallback,userContext); },
SavePreferredCulture:function(culture,succeededCallback, failedCallback, userContext) {
return this._invoke(MySpace.Web.Services.GeoLocation.get_path(), 'SavePreferredCulture',false,{culture:culture},succeededCallback,failedCallback,userContext); }}
MySpace.Web.Services.GeoLocation.registerClass('MySpace.Web.Services.GeoLocation',Sys.Net.WebServiceProxy);
MySpace.Web.Services.GeoLocation._staticInstance = new MySpace.Web.Services.GeoLocation();
MySpace.Web.Services.GeoLocation.set_path = function(value) { MySpace.Web.Services.GeoLocation._staticInstance._path = value; }
MySpace.Web.Services.GeoLocation.get_path = function() { return MySpace.Web.Services.GeoLocation._staticInstance._path; }
MySpace.Web.Services.GeoLocation.set_timeout = function(value) { MySpace.Web.Services.GeoLocation._staticInstance._timeout = value; }
MySpace.Web.Services.GeoLocation.get_timeout = function() { return MySpace.Web.Services.GeoLocation._staticInstance._timeout; }
MySpace.Web.Services.GeoLocation.set_defaultUserContext = function(value) { MySpace.Web.Services.GeoLocation._staticInstance._userContext = value; }
MySpace.Web.Services.GeoLocation.get_defaultUserContext = function() { return MySpace.Web.Services.GeoLocation._staticInstance._userContext; }
MySpace.Web.Services.GeoLocation.set_defaultSucceededCallback = function(value) { MySpace.Web.Services.GeoLocation._staticInstance._succeeded = value; }
MySpace.Web.Services.GeoLocation.get_defaultSucceededCallback = function() { return MySpace.Web.Services.GeoLocation._staticInstance._succeeded; }
MySpace.Web.Services.GeoLocation.set_defaultFailedCallback = function(value) { MySpace.Web.Services.GeoLocation._staticInstance._failed = value; }
MySpace.Web.Services.GeoLocation.get_defaultFailedCallback = function() { return MySpace.Web.Services.GeoLocation._staticInstance._failed; }
MySpace.Web.Services.GeoLocation.set_path("/Services/GeoLocation.asmx");
MySpace.Web.Services.GeoLocation.GetStates= function(countryID,culture,onSuccess,onFailed,userContext) {MySpace.Web.Services.GeoLocation._staticInstance.GetStates(countryID,culture,onSuccess,onFailed,userContext); }
MySpace.Web.Services.GeoLocation.GetStatesList= function(countryID,culture,onSuccess,onFailed,userContext) {MySpace.Web.Services.GeoLocation._staticInstance.GetStatesList(countryID,culture,onSuccess,onFailed,userContext); }
MySpace.Web.Services.GeoLocation.SavePreferredCulture= function(culture,onSuccess,onFailed,userContext) {MySpace.Web.Services.GeoLocation._staticInstance.SavePreferredCulture(culture,onSuccess,onFailed,userContext); }
