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