Type.registerNamespace('Terra.Portal.AjaxServices.Weather');
Terra.Portal.AjaxServices.Weather.WeatherService=function() {
Terra.Portal.AjaxServices.Weather.WeatherService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Terra.Portal.AjaxServices.Weather.WeatherService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Terra.Portal.AjaxServices.Weather.WeatherService._staticInstance.get_path();},
GetWeather:function(cityCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetWeather',false,{cityCode:cityCode},succeededCallback,failedCallback,userContext); },
GetDayWeather:function(cityName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetDayWeather',false,{cityName:cityName},succeededCallback,failedCallback,userContext); }}
Terra.Portal.AjaxServices.Weather.WeatherService.registerClass('Terra.Portal.AjaxServices.Weather.WeatherService',Sys.Net.WebServiceProxy);
Terra.Portal.AjaxServices.Weather.WeatherService._staticInstance = new Terra.Portal.AjaxServices.Weather.WeatherService();
Terra.Portal.AjaxServices.Weather.WeatherService.set_path = function(value) { Terra.Portal.AjaxServices.Weather.WeatherService._staticInstance.set_path(value); }
Terra.Portal.AjaxServices.Weather.WeatherService.get_path = function() { return Terra.Portal.AjaxServices.Weather.WeatherService._staticInstance.get_path(); }
Terra.Portal.AjaxServices.Weather.WeatherService.set_timeout = function(value) { Terra.Portal.AjaxServices.Weather.WeatherService._staticInstance.set_timeout(value); }
Terra.Portal.AjaxServices.Weather.WeatherService.get_timeout = function() { return Terra.Portal.AjaxServices.Weather.WeatherService._staticInstance.get_timeout(); }
Terra.Portal.AjaxServices.Weather.WeatherService.set_defaultUserContext = function(value) { Terra.Portal.AjaxServices.Weather.WeatherService._staticInstance.set_defaultUserContext(value); }
Terra.Portal.AjaxServices.Weather.WeatherService.get_defaultUserContext = function() { return Terra.Portal.AjaxServices.Weather.WeatherService._staticInstance.get_defaultUserContext(); }
Terra.Portal.AjaxServices.Weather.WeatherService.set_defaultSucceededCallback = function(value) { Terra.Portal.AjaxServices.Weather.WeatherService._staticInstance.set_defaultSucceededCallback(value); }
Terra.Portal.AjaxServices.Weather.WeatherService.get_defaultSucceededCallback = function() { return Terra.Portal.AjaxServices.Weather.WeatherService._staticInstance.get_defaultSucceededCallback(); }
Terra.Portal.AjaxServices.Weather.WeatherService.set_defaultFailedCallback = function(value) { Terra.Portal.AjaxServices.Weather.WeatherService._staticInstance.set_defaultFailedCallback(value); }
Terra.Portal.AjaxServices.Weather.WeatherService.get_defaultFailedCallback = function() { return Terra.Portal.AjaxServices.Weather.WeatherService._staticInstance.get_defaultFailedCallback(); }
Terra.Portal.AjaxServices.Weather.WeatherService.set_path("/Terra.Portal.AjaxServices/Weather/WeatherService.asmx");
Terra.Portal.AjaxServices.Weather.WeatherService.GetWeather= function(cityCode,onSuccess,onFailed,userContext) {Terra.Portal.AjaxServices.Weather.WeatherService._staticInstance.GetWeather(cityCode,onSuccess,onFailed,userContext); }
Terra.Portal.AjaxServices.Weather.WeatherService.GetDayWeather= function(cityName,onSuccess,onFailed,userContext) {Terra.Portal.AjaxServices.Weather.WeatherService._staticInstance.GetDayWeather(cityName,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Terra.Portal.Services.Weather');
if (typeof(Terra.Portal.Services.Weather.DayWeather) === 'undefined') {
Terra.Portal.Services.Weather.DayWeather=gtc("Terra.Portal.Services.Weather.DayWeather");
Terra.Portal.Services.Weather.DayWeather.registerClass('Terra.Portal.Services.Weather.DayWeather');
}
