var LocaterScentsyAPIWithAjax=function() {
LocaterScentsyAPIWithAjax.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
LocaterScentsyAPIWithAjax.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return LocaterScentsyAPIWithAjax._staticInstance.get_path();},
OnlineLeadsAddLead:function(Name,Email,Phone,ZipCode,HostAParty,InfoBusiness,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'OnlineLeadsAddLead',false,{Name:Name,Email:Email,Phone:Phone,ZipCode:ZipCode,HostAParty:HostAParty,InfoBusiness:InfoBusiness},succeededCallback,failedCallback,userContext); },
OnlineLeadsRetrieveList:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'OnlineLeadsRetrieveList',false,{},succeededCallback,failedCallback,userContext); },
LocateARep:function(PostalCode,Street,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'LocateARep',false,{PostalCode:PostalCode,Street:Street},succeededCallback,failedCallback,userContext); },
LocateMyRep:function(FirstName,LastName,State,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'LocateMyRep',false,{FirstName:FirstName,LastName:LastName,State:State},succeededCallback,failedCallback,userContext); }}
LocaterScentsyAPIWithAjax.registerClass('LocaterScentsyAPIWithAjax',Sys.Net.WebServiceProxy);
LocaterScentsyAPIWithAjax._staticInstance = new LocaterScentsyAPIWithAjax();
LocaterScentsyAPIWithAjax.set_path = function(value) { LocaterScentsyAPIWithAjax._staticInstance.set_path(value); }
LocaterScentsyAPIWithAjax.get_path = function() { return LocaterScentsyAPIWithAjax._staticInstance.get_path(); }
LocaterScentsyAPIWithAjax.set_timeout = function(value) { LocaterScentsyAPIWithAjax._staticInstance.set_timeout(value); }
LocaterScentsyAPIWithAjax.get_timeout = function() { return LocaterScentsyAPIWithAjax._staticInstance.get_timeout(); }
LocaterScentsyAPIWithAjax.set_defaultUserContext = function(value) { LocaterScentsyAPIWithAjax._staticInstance.set_defaultUserContext(value); }
LocaterScentsyAPIWithAjax.get_defaultUserContext = function() { return LocaterScentsyAPIWithAjax._staticInstance.get_defaultUserContext(); }
LocaterScentsyAPIWithAjax.set_defaultSucceededCallback = function(value) { LocaterScentsyAPIWithAjax._staticInstance.set_defaultSucceededCallback(value); }
LocaterScentsyAPIWithAjax.get_defaultSucceededCallback = function() { return LocaterScentsyAPIWithAjax._staticInstance.get_defaultSucceededCallback(); }
LocaterScentsyAPIWithAjax.set_defaultFailedCallback = function(value) { LocaterScentsyAPIWithAjax._staticInstance.set_defaultFailedCallback(value); }
LocaterScentsyAPIWithAjax.get_defaultFailedCallback = function() { return LocaterScentsyAPIWithAjax._staticInstance.get_defaultFailedCallback(); }
LocaterScentsyAPIWithAjax.set_path("/LocaterScentsyAPIWithAjax.svc");
LocaterScentsyAPIWithAjax.OnlineLeadsAddLead= function(Name,Email,Phone,ZipCode,HostAParty,InfoBusiness,onSuccess,onFailed,userContext) {LocaterScentsyAPIWithAjax._staticInstance.OnlineLeadsAddLead(Name,Email,Phone,ZipCode,HostAParty,InfoBusiness,onSuccess,onFailed,userContext); }
LocaterScentsyAPIWithAjax.OnlineLeadsRetrieveList= function(onSuccess,onFailed,userContext) {LocaterScentsyAPIWithAjax._staticInstance.OnlineLeadsRetrieveList(onSuccess,onFailed,userContext); }
LocaterScentsyAPIWithAjax.LocateARep= function(PostalCode,Street,onSuccess,onFailed,userContext) {LocaterScentsyAPIWithAjax._staticInstance.LocateARep(PostalCode,Street,onSuccess,onFailed,userContext); }
LocaterScentsyAPIWithAjax.LocateMyRep= function(FirstName,LastName,State,onSuccess,onFailed,userContext) {LocaterScentsyAPIWithAjax._staticInstance.LocateMyRep(FirstName,LastName,State,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Locator');
if (typeof(Locator.LeadInfo) === 'undefined') {
Locator.LeadInfo=gtc("LeadInfo:http://schemas.datacontract.org/2004/07/Locator");
Locator.LeadInfo.registerClass('Locator.LeadInfo');
}
if (typeof(Locator.RepDetailsInfo) === 'undefined') {
Locator.RepDetailsInfo=gtc("RepDetailsInfo:http://schemas.datacontract.org/2004/07/Locator");
Locator.RepDetailsInfo.registerClass('Locator.RepDetailsInfo');
}
