Type.registerNamespace('Samples.AspNet');
Samples.AspNet.SimpleWebService=function() {
Samples.AspNet.SimpleWebService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Samples.AspNet.SimpleWebService.prototype={
ClearSession:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'ClearSession',false,{},succeededCallback,failedCallback,userContext); },
Logout:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'Logout',false,{},succeededCallback,failedCallback,userContext); },
ClearBooking:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'ClearBooking',false,{},succeededCallback,failedCallback,userContext); },
LogIn:function(sAccountType,sAccountNo,sEmail,sPwd,sPCode,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'LogIn',false,{sAccountType:sAccountType,sAccountNo:sAccountNo,sEmail:sEmail,sPwd:sPwd,sPCode:sPCode},succeededCallback,failedCallback,userContext); },
ChangePassword:function(sAccountType,sAccountNo,sEmail,sPwd,sNewPwd,sPCode,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'ChangePassword',false,{sAccountType:sAccountType,sAccountNo:sAccountNo,sEmail:sEmail,sPwd:sPwd,sNewPwd:sNewPwd,sPCode:sPCode},succeededCallback,failedCallback,userContext); },
CreatePkLocList:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'CreatePkLocList',false,{},succeededCallback,failedCallback,userContext); },
GetPkLocList:function(prefixText,count,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'GetPkLocList',false,{prefixText:prefixText,count:count,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetRtLocList:function(prefixText,count,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'GetRtLocList',false,{prefixText:prefixText,count:count,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
LocValidate:function(sType,sLocName,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'LocValidate',false,{sType:sType,sLocName:sLocName},succeededCallback,failedCallback,userContext); },
RetrieveTimeList:function(sFlag,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'RetrieveTimeList',false,{sFlag:sFlag},succeededCallback,failedCallback,userContext); },
WriteToSession:function(sKey,sValue,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'WriteToSession',false,{sKey:sKey,sValue:sValue},succeededCallback,failedCallback,userContext); },
Estimate:function(sRateID,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'Estimate',false,{sRateID:sRateID},succeededCallback,failedCallback,userContext); },
VehicleLocationsXX:function(sCarCode,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'VehicleLocationsXX',false,{sCarCode:sCarCode},succeededCallback,failedCallback,userContext); },
FillAvailableVehicleHtml:function(sType,bDisplayVehCode,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'FillAvailableVehicleHtml',false,{sType:sType,bDisplayVehCode:bDisplayVehCode},succeededCallback,failedCallback,userContext); },
FillVehicleHtml:function(sType,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'FillVehicleHtml',false,{sType:sType},succeededCallback,failedCallback,userContext); },
RegionLocations:function(region_id,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'RegionLocations',false,{region_id:region_id},succeededCallback,failedCallback,userContext); },
LocationDetail:function(sLocCode,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'LocationDetail',false,{sLocCode:sLocCode},succeededCallback,failedCallback,userContext); },
WriteSession:function(sRateID,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'WriteSession',false,{sRateID:sRateID},succeededCallback,failedCallback,userContext); },
Booking:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'Booking',false,{},succeededCallback,failedCallback,userContext); },
Modifying:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'Modifying',false,{},succeededCallback,failedCallback,userContext); },
LoadFees:function(sOptionValue,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'LoadFees',false,{sOptionValue:sOptionValue},succeededCallback,failedCallback,userContext); },
BookFromVehicle:function(sInfo,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'BookFromVehicle',false,{sInfo:sInfo},succeededCallback,failedCallback,userContext); },
BookFromVehicleAndLocation:function(sInfo,sLocationCode,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'BookFromVehicleAndLocation',false,{sInfo:sInfo,sLocationCode:sLocationCode},succeededCallback,failedCallback,userContext); },
BookFromLocation:function(sLocationCode,sLocInd,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'BookFromLocation',false,{sLocationCode:sLocationCode,sLocInd:sLocInd},succeededCallback,failedCallback,userContext); },
IfVehExists:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'IfVehExists',false,{},succeededCallback,failedCallback,userContext); },
PagesList:function(sCarCode,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'PagesList',false,{sCarCode:sCarCode},succeededCallback,failedCallback,userContext); },
FaqItemList:function(sCarCode,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'FaqItemList',false,{sCarCode:sCarCode},succeededCallback,failedCallback,userContext); },
VehicleLocations:function(sCarCode,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'VehicleLocations',false,{sCarCode:sCarCode},succeededCallback,failedCallback,userContext); },
LocationVehicleList:function(sLocCode,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'LocationVehicleList',false,{sLocCode:sLocCode},succeededCallback,failedCallback,userContext); },
PopOptionsHtml:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'PopOptionsHtml',false,{},succeededCallback,failedCallback,userContext); },
PopCostDetailsHtml:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'PopCostDetailsHtml',false,{},succeededCallback,failedCallback,userContext); },
ChosenVehSquare:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'ChosenVehSquare',false,{},succeededCallback,failedCallback,userContext); },
PopUpgradeInfo:function(sTemplate,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'PopUpgradeInfo',false,{sTemplate:sTemplate},succeededCallback,failedCallback,userContext); },
PopPreVehInfo:function(sTemplate,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'PopPreVehInfo',false,{sTemplate:sTemplate},succeededCallback,failedCallback,userContext); },
SavePreVeh:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'SavePreVeh',false,{},succeededCallback,failedCallback,userContext); },
LoadPreVeh:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'LoadPreVeh',false,{},succeededCallback,failedCallback,userContext); },
ForgottenPassword:function(sAccountType,sAccountNo,sEmail,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'ForgottenPassword',false,{sAccountType:sAccountType,sAccountNo:sAccountNo,sEmail:sEmail},succeededCallback,failedCallback,userContext); },
ReloadPkList:function(sSubAct,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'ReloadPkList',false,{sSubAct:sSubAct},succeededCallback,failedCallback,userContext); },
CheckSession:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'CheckSession',false,{},succeededCallback,failedCallback,userContext); },
GetReadyToRetrieve:function(sKey,sValue,succeededCallback, failedCallback, userContext) {
return this._invoke(Samples.AspNet.SimpleWebService.get_path(), 'GetReadyToRetrieve',false,{sKey:sKey,sValue:sValue},succeededCallback,failedCallback,userContext); }}
Samples.AspNet.SimpleWebService.registerClass('Samples.AspNet.SimpleWebService',Sys.Net.WebServiceProxy);
Samples.AspNet.SimpleWebService._staticInstance = new Samples.AspNet.SimpleWebService();
Samples.AspNet.SimpleWebService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Samples.AspNet.SimpleWebService._staticInstance._path = value; }
Samples.AspNet.SimpleWebService.get_path = function() { return Samples.AspNet.SimpleWebService._staticInstance._path; }
Samples.AspNet.SimpleWebService.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); }
Samples.AspNet.SimpleWebService._staticInstance._timeout = value; }
Samples.AspNet.SimpleWebService.get_timeout = function() { 
return Samples.AspNet.SimpleWebService._staticInstance._timeout; }
Samples.AspNet.SimpleWebService.set_defaultUserContext = function(value) { 
Samples.AspNet.SimpleWebService._staticInstance._userContext = value; }
Samples.AspNet.SimpleWebService.get_defaultUserContext = function() { 
return Samples.AspNet.SimpleWebService._staticInstance._userContext; }
Samples.AspNet.SimpleWebService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Samples.AspNet.SimpleWebService._staticInstance._succeeded = value; }
Samples.AspNet.SimpleWebService.get_defaultSucceededCallback = function() { 
return Samples.AspNet.SimpleWebService._staticInstance._succeeded; }
Samples.AspNet.SimpleWebService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Samples.AspNet.SimpleWebService._staticInstance._failed = value; }
Samples.AspNet.SimpleWebService.get_defaultFailedCallback = function() { 
return Samples.AspNet.SimpleWebService._staticInstance._failed; }
Samples.AspNet.SimpleWebService.set_path("/SimpleWebService.asmx");
Samples.AspNet.SimpleWebService.ClearSession= function(onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.ClearSession(onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.Logout= function(onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.Logout(onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.ClearBooking= function(onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.ClearBooking(onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.LogIn= function(sAccountType,sAccountNo,sEmail,sPwd,sPCode,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.LogIn(sAccountType,sAccountNo,sEmail,sPwd,sPCode,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.ChangePassword= function(sAccountType,sAccountNo,sEmail,sPwd,sNewPwd,sPCode,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.ChangePassword(sAccountType,sAccountNo,sEmail,sPwd,sNewPwd,sPCode,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.CreatePkLocList= function(onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.CreatePkLocList(onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.GetPkLocList= function(prefixText,count,contextKey,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.GetPkLocList(prefixText,count,contextKey,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.GetRtLocList= function(prefixText,count,contextKey,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.GetRtLocList(prefixText,count,contextKey,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.LocValidate= function(sType,sLocName,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.LocValidate(sType,sLocName,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.RetrieveTimeList= function(sFlag,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.RetrieveTimeList(sFlag,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.WriteToSession= function(sKey,sValue,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.WriteToSession(sKey,sValue,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.Estimate= function(sRateID,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.Estimate(sRateID,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.VehicleLocationsXX= function(sCarCode,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.VehicleLocationsXX(sCarCode,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.FillAvailableVehicleHtml= function(sType,bDisplayVehCode,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.FillAvailableVehicleHtml(sType,bDisplayVehCode,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.FillVehicleHtml= function(sType,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.FillVehicleHtml(sType,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.RegionLocations= function(region_id,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.RegionLocations(region_id,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.LocationDetail= function(sLocCode,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.LocationDetail(sLocCode,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.WriteSession= function(sRateID,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.WriteSession(sRateID,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.Booking= function(onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.Booking(onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.Modifying= function(onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.Modifying(onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.LoadFees= function(sOptionValue,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.LoadFees(sOptionValue,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.BookFromVehicle= function(sInfo,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.BookFromVehicle(sInfo,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.BookFromVehicleAndLocation= function(sInfo,sLocationCode,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.BookFromVehicleAndLocation(sInfo,sLocationCode,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.BookFromLocation= function(sLocationCode,sLocInd,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.BookFromLocation(sLocationCode,sLocInd,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.IfVehExists= function(onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.IfVehExists(onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.PagesList= function(sCarCode,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.PagesList(sCarCode,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.FaqItemList= function(sCarCode,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.FaqItemList(sCarCode,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.VehicleLocations= function(sCarCode,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.VehicleLocations(sCarCode,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.LocationVehicleList= function(sLocCode,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.LocationVehicleList(sLocCode,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.PopOptionsHtml= function(onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.PopOptionsHtml(onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.PopCostDetailsHtml= function(onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.PopCostDetailsHtml(onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.ChosenVehSquare= function(onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.ChosenVehSquare(onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.PopUpgradeInfo= function(sTemplate,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.PopUpgradeInfo(sTemplate,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.PopPreVehInfo= function(sTemplate,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.PopPreVehInfo(sTemplate,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.SavePreVeh= function(onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.SavePreVeh(onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.LoadPreVeh= function(onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.LoadPreVeh(onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.ForgottenPassword= function(sAccountType,sAccountNo,sEmail,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.ForgottenPassword(sAccountType,sAccountNo,sEmail,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.ReloadPkList= function(sSubAct,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.ReloadPkList(sSubAct,onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.CheckSession= function(onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.CheckSession(onSuccess,onFailed,userContext); }
Samples.AspNet.SimpleWebService.GetReadyToRetrieve= function(sKey,sValue,onSuccess,onFailed,userContext) {Samples.AspNet.SimpleWebService._staticInstance.GetReadyToRetrieve(sKey,sValue,onSuccess,onFailed,userContext); }
