Type.registerNamespace('sfservice');
sfservice.service=function() {
sfservice.service.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
sfservice.service.prototype={
HelloWorld:function(succeededCallback, failedCallback, userContext) {
return this._invoke(sfservice.service.get_path(), 'HelloWorld',false,{},succeededCallback,failedCallback,userContext); },
YPAuthenticateUser:function(LogonName,Password,IsPersistant,IsRedirect,succeededCallback, failedCallback, userContext) {
return this._invoke(sfservice.service.get_path(), 'YPAuthenticateUser',false,{LogonName:LogonName,Password:Password,IsPersistant:IsPersistant,IsRedirect:IsRedirect},succeededCallback,failedCallback,userContext); },
EmailToBusiness:function(MyName,MyMobileNo,MyEmail,AlsoSms,Comments,BusinessId,succeededCallback, failedCallback, userContext) {
return this._invoke(sfservice.service.get_path(), 'EmailToBusiness',false,{MyName:MyName,MyMobileNo:MyMobileNo,MyEmail:MyEmail,AlsoSms:AlsoSms,Comments:Comments,BusinessId:BusinessId},succeededCallback,failedCallback,userContext); },
EmailToFriend:function(Contentid,MyName,FriendName,FriendEmail,Comments,CityName,succeededCallback, failedCallback, userContext) {
return this._invoke(sfservice.service.get_path(), 'EmailToFriend',false,{Contentid:Contentid,MyName:MyName,FriendName:FriendName,FriendEmail:FriendEmail,Comments:Comments,CityName:CityName},succeededCallback,failedCallback,userContext); },
DownloadBySms:function(MobileNo,BusinessId,succeededCallback, failedCallback, userContext) {
return this._invoke(sfservice.service.get_path(), 'DownloadBySms',false,{MobileNo:MobileNo,BusinessId:BusinessId},succeededCallback,failedCallback,userContext); },
DownloadByLandline:function(MobileNo,BusinessId,succeededCallback, failedCallback, userContext) {
return this._invoke(sfservice.service.get_path(), 'DownloadByLandline',false,{MobileNo:MobileNo,BusinessId:BusinessId},succeededCallback,failedCallback,userContext); },
DownloadByMobile:function(MobileNo,BusinessId,succeededCallback, failedCallback, userContext) {
return this._invoke(sfservice.service.get_path(), 'DownloadByMobile',false,{MobileNo:MobileNo,BusinessId:BusinessId},succeededCallback,failedCallback,userContext); },
SendSMStoBusinessAndCustomer:function(MobileNo,BusinessId,sName,succeededCallback, failedCallback, userContext) {
return this._invoke(sfservice.service.get_path(), 'SendSMStoBusinessAndCustomer',false,{MobileNo:MobileNo,BusinessId:BusinessId,sName:sName},succeededCallback,failedCallback,userContext); },
SendMailResponse:function(sMessage,sSubject,sFrom,sTo,sBcc,sPromoText,succeededCallback, failedCallback, userContext) {
return this._invoke(sfservice.service.get_path(), 'SendMailResponse',false,{sMessage:sMessage,sSubject:sSubject,sFrom:sFrom,sTo:sTo,sBcc:sBcc,sPromoText:sPromoText},succeededCallback,failedCallback,userContext); },
SendSmsResponse:function(sMessage,sFromMobile,sToMobile,xeConfig,succeededCallback, failedCallback, userContext) {
return this._invoke(sfservice.service.get_path(), 'SendSmsResponse',false,{sMessage:sMessage,sFromMobile:sFromMobile,sToMobile:sToMobile,xeConfig:xeConfig},succeededCallback,failedCallback,userContext); }}
sfservice.service.registerClass('sfservice.service',Sys.Net.WebServiceProxy);
sfservice.service._staticInstance = new sfservice.service();
sfservice.service.set_path = function(value) { sfservice.service._staticInstance._path = value; }
sfservice.service.get_path = function() { return sfservice.service._staticInstance._path; }
sfservice.service.set_timeout = function(value) { sfservice.service._staticInstance._timeout = value; }
sfservice.service.get_timeout = function() { return sfservice.service._staticInstance._timeout; }
sfservice.service.set_defaultUserContext = function(value) { sfservice.service._staticInstance._userContext = value; }
sfservice.service.get_defaultUserContext = function() { return sfservice.service._staticInstance._userContext; }
sfservice.service.set_defaultSucceededCallback = function(value) { sfservice.service._staticInstance._succeeded = value; }
sfservice.service.get_defaultSucceededCallback = function() { return sfservice.service._staticInstance._succeeded; }
sfservice.service.set_defaultFailedCallback = function(value) { sfservice.service._staticInstance._failed = value; }
sfservice.service.get_defaultFailedCallback = function() { return sfservice.service._staticInstance._failed; }
sfservice.service.set_path("/school-finder/sfservice.asmx");
sfservice.service.HelloWorld= function(onSuccess,onFailed,userContext) {sfservice.service._staticInstance.HelloWorld(onSuccess,onFailed,userContext); }
sfservice.service.YPAuthenticateUser= function(LogonName,Password,IsPersistant,IsRedirect,onSuccess,onFailed,userContext) {sfservice.service._staticInstance.YPAuthenticateUser(LogonName,Password,IsPersistant,IsRedirect,onSuccess,onFailed,userContext); }
sfservice.service.EmailToBusiness= function(MyName,MyMobileNo,MyEmail,AlsoSms,Comments,BusinessId,onSuccess,onFailed,userContext) {sfservice.service._staticInstance.EmailToBusiness(MyName,MyMobileNo,MyEmail,AlsoSms,Comments,BusinessId,onSuccess,onFailed,userContext); }
sfservice.service.EmailToFriend= function(Contentid,MyName,FriendName,FriendEmail,Comments,CityName,onSuccess,onFailed,userContext) {sfservice.service._staticInstance.EmailToFriend(Contentid,MyName,FriendName,FriendEmail,Comments,CityName,onSuccess,onFailed,userContext); }
sfservice.service.DownloadBySms= function(MobileNo,BusinessId,onSuccess,onFailed,userContext) {sfservice.service._staticInstance.DownloadBySms(MobileNo,BusinessId,onSuccess,onFailed,userContext); }
sfservice.service.DownloadByLandline= function(MobileNo,BusinessId,onSuccess,onFailed,userContext) {sfservice.service._staticInstance.DownloadByLandline(MobileNo,BusinessId,onSuccess,onFailed,userContext); }
sfservice.service.DownloadByMobile= function(MobileNo,BusinessId,onSuccess,onFailed,userContext) {sfservice.service._staticInstance.DownloadByMobile(MobileNo,BusinessId,onSuccess,onFailed,userContext); }
sfservice.service.SendSMStoBusinessAndCustomer= function(MobileNo,BusinessId,sName,onSuccess,onFailed,userContext) {sfservice.service._staticInstance.SendSMStoBusinessAndCustomer(MobileNo,BusinessId,sName,onSuccess,onFailed,userContext); }
sfservice.service.SendMailResponse= function(sMessage,sSubject,sFrom,sTo,sBcc,sPromoText,onSuccess,onFailed,userContext) {sfservice.service._staticInstance.SendMailResponse(sMessage,sSubject,sFrom,sTo,sBcc,sPromoText,onSuccess,onFailed,userContext); }
sfservice.service.SendSmsResponse= function(sMessage,sFromMobile,sToMobile,xeConfig,onSuccess,onFailed,userContext) {sfservice.service._staticInstance.SendSmsResponse(sMessage,sFromMobile,sToMobile,xeConfig,onSuccess,onFailed,userContext); }
