var siteWS=function() {
siteWS.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
siteWS.prototype={
TimeAndDistance:function(FromAirport,ToAirport,succeededCallback, failedCallback, userContext) {
return this._invoke(siteWS.get_path(), 'TimeAndDistance',false,{FromAirport:FromAirport,ToAirport:ToAirport},succeededCallback,failedCallback,userContext); },
ValidateLegs:function(FromText,ToText,FromID,ToID,FromErrorID,ToErrorID,DateTimeDepart,succeededCallback, failedCallback, userContext) {
return this._invoke(siteWS.get_path(), 'ValidateLegs',false,{FromText:FromText,ToText:ToText,FromID:FromID,ToID:ToID,FromErrorID:FromErrorID,ToErrorID:ToErrorID,DateTimeDepart:DateTimeDepart},succeededCallback,failedCallback,userContext); },
GetWeather:function(zip,succeededCallback, failedCallback, userContext) {
return this._invoke(siteWS.get_path(), 'GetWeather',false,{zip:zip},succeededCallback,failedCallback,userContext); },
CalculateArrivalTime:function(fromAP,toAP,departDateTime,NumOfPassangers,AircraftSize,succeededCallback, failedCallback, userContext) {
return this._invoke(siteWS.get_path(), 'CalculateArrivalTime',false,{fromAP:fromAP,toAP:toAP,departDateTime:departDateTime,NumOfPassangers:NumOfPassangers,AircraftSize:AircraftSize},succeededCallback,failedCallback,userContext); }}
siteWS.registerClass('siteWS',Sys.Net.WebServiceProxy);
siteWS._staticInstance = new siteWS();
siteWS.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; siteWS._staticInstance._path = value; }
siteWS.get_path = function() { return siteWS._staticInstance._path; }
siteWS.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); }
siteWS._staticInstance._timeout = value; }
siteWS.get_timeout = function() { 
return siteWS._staticInstance._timeout; }
siteWS.set_defaultUserContext = function(value) { 
siteWS._staticInstance._userContext = value; }
siteWS.get_defaultUserContext = function() { 
return siteWS._staticInstance._userContext; }
siteWS.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; siteWS._staticInstance._succeeded = value; }
siteWS.get_defaultSucceededCallback = function() { 
return siteWS._staticInstance._succeeded; }
siteWS.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; siteWS._staticInstance._failed = value; }
siteWS.get_defaultFailedCallback = function() { 
return siteWS._staticInstance._failed; }
siteWS.set_path("/siteWS.asmx");
siteWS.TimeAndDistance= function(FromAirport,ToAirport,onSuccess,onFailed,userContext) {siteWS._staticInstance.TimeAndDistance(FromAirport,ToAirport,onSuccess,onFailed,userContext); }
siteWS.ValidateLegs= function(FromText,ToText,FromID,ToID,FromErrorID,ToErrorID,DateTimeDepart,onSuccess,onFailed,userContext) {siteWS._staticInstance.ValidateLegs(FromText,ToText,FromID,ToID,FromErrorID,ToErrorID,DateTimeDepart,onSuccess,onFailed,userContext); }
siteWS.GetWeather= function(zip,onSuccess,onFailed,userContext) {siteWS._staticInstance.GetWeather(zip,onSuccess,onFailed,userContext); }
siteWS.CalculateArrivalTime= function(fromAP,toAP,departDateTime,NumOfPassangers,AircraftSize,onSuccess,onFailed,userContext) {siteWS._staticInstance.CalculateArrivalTime(fromAP,toAP,departDateTime,NumOfPassangers,AircraftSize,onSuccess,onFailed,userContext); }
