var Location=function() {
Location.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Location.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Location._staticInstance.get_path();},
GetNearestLocations:function(pLat,pLon,maxLocations,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNearestLocations',true,{pLat:pLat,pLon:pLon,maxLocations:maxLocations},succeededCallback,failedCallback,userContext); },
GetNearestLocationsFilter:function(pLat,pLon,maxLocations,authorized,sales,install,certInstall,repair,premier,wholesale,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNearestLocationsFilter',true,{pLat:pLat,pLon:pLon,maxLocations:maxLocations,authorized:authorized,sales:sales,install:install,certInstall:certInstall,repair:repair,premier:premier,wholesale:wholesale},succeededCallback,failedCallback,userContext); },
GetUncodedLocations:function(randomizer,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUncodedLocations',true,{randomizer:randomizer},succeededCallback,failedCallback,userContext); },
SearchLocations:function(randomizer,search,uscountry,state,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SearchLocations',true,{randomizer:randomizer,search:search,uscountry:uscountry,state:state},succeededCallback,failedCallback,userContext); },
UpdateLocation:function(pLocation,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateLocation',true,{pLocation:pLocation},succeededCallback,failedCallback,userContext); },
DeleteLocation:function(pLocationId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteLocation',true,{pLocationId:pLocationId},succeededCallback,failedCallback,userContext); }}
Location.registerClass('Location',Sys.Net.WebServiceProxy);
Location._staticInstance = new Location();
Location.set_path = function(value) { Location._staticInstance.set_path(value); }
Location.get_path = function() { return Location._staticInstance.get_path(); }
Location.set_timeout = function(value) { Location._staticInstance.set_timeout(value); }
Location.get_timeout = function() { return Location._staticInstance.get_timeout(); }
Location.set_defaultUserContext = function(value) { Location._staticInstance.set_defaultUserContext(value); }
Location.get_defaultUserContext = function() { return Location._staticInstance.get_defaultUserContext(); }
Location.set_defaultSucceededCallback = function(value) { Location._staticInstance.set_defaultSucceededCallback(value); }
Location.get_defaultSucceededCallback = function() { return Location._staticInstance.get_defaultSucceededCallback(); }
Location.set_defaultFailedCallback = function(value) { Location._staticInstance.set_defaultFailedCallback(value); }
Location.get_defaultFailedCallback = function() { return Location._staticInstance.get_defaultFailedCallback(); }
Location.set_path("/Services/Location.svc");
Location.GetNearestLocations= function(pLat,pLon,maxLocations,onSuccess,onFailed,userContext) {Location._staticInstance.GetNearestLocations(pLat,pLon,maxLocations,onSuccess,onFailed,userContext); }
Location.GetNearestLocationsFilter= function(pLat,pLon,maxLocations,authorized,sales,install,certInstall,repair,premier,wholesale,onSuccess,onFailed,userContext) {Location._staticInstance.GetNearestLocationsFilter(pLat,pLon,maxLocations,authorized,sales,install,certInstall,repair,premier,wholesale,onSuccess,onFailed,userContext); }
Location.GetUncodedLocations= function(randomizer,onSuccess,onFailed,userContext) {Location._staticInstance.GetUncodedLocations(randomizer,onSuccess,onFailed,userContext); }
Location.SearchLocations= function(randomizer,search,uscountry,state,onSuccess,onFailed,userContext) {Location._staticInstance.SearchLocations(randomizer,search,uscountry,state,onSuccess,onFailed,userContext); }
Location.UpdateLocation= function(pLocation,onSuccess,onFailed,userContext) {Location._staticInstance.UpdateLocation(pLocation,onSuccess,onFailed,userContext); }
Location.DeleteLocation= function(pLocationId,onSuccess,onFailed,userContext) {Location._staticInstance.DeleteLocation(pLocationId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Loc) === 'undefined') {
var Loc=gtc("Loc:http://schemas.datacontract.org/2004/07/");
Loc.registerClass('Loc');
}

