Type.registerNamespace('Valassis.RedPlum.Web.FrameComponents.Web.Services');
Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService=function() {
Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService._staticInstance.get_path();},
GetLocation:function(StreetDirPref,StreetNum,StreetName,StreetSuff,StreetDirSuff,City,State,ZipCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetLocation',false,{StreetDirPref:StreetDirPref,StreetNum:StreetNum,StreetName:StreetName,StreetSuff:StreetSuff,StreetDirSuff:StreetDirSuff,City:City,State:State,ZipCode:ZipCode},succeededCallback,failedCallback,userContext); },
GetLocationByZip:function(ZipCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetLocationByZip',false,{ZipCode:ZipCode},succeededCallback,failedCallback,userContext); }}
Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService.registerClass('Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService',Sys.Net.WebServiceProxy);
Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService._staticInstance = new Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService();
Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService.set_path = function(value) { Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService._staticInstance.set_path(value); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService.get_path = function() { return Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService._staticInstance.get_path(); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService.set_timeout = function(value) { Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService._staticInstance.set_timeout(value); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService.get_timeout = function() { return Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService._staticInstance.get_timeout(); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService.set_defaultUserContext = function(value) { Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService._staticInstance.set_defaultUserContext(value); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService.get_defaultUserContext = function() { return Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService._staticInstance.get_defaultUserContext(); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService.set_defaultSucceededCallback = function(value) { Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService._staticInstance.set_defaultSucceededCallback(value); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService.get_defaultSucceededCallback = function() { return Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService._staticInstance.get_defaultSucceededCallback(); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService.set_defaultFailedCallback = function(value) { Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService._staticInstance.set_defaultFailedCallback(value); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService.get_defaultFailedCallback = function() { return Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService._staticInstance.get_defaultFailedCallback(); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService.set_path("/services/LocationService.asmx");
Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService.GetLocation= function(StreetDirPref,StreetNum,StreetName,StreetSuff,StreetDirSuff,City,State,ZipCode,onSuccess,onFailed,userContext) {Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService._staticInstance.GetLocation(StreetDirPref,StreetNum,StreetName,StreetSuff,StreetDirSuff,City,State,ZipCode,onSuccess,onFailed,userContext); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService.GetLocationByZip= function(ZipCode,onSuccess,onFailed,userContext) {Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService._staticInstance.GetLocationByZip(ZipCode,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Valassis.RedPlum.Web.FrameComponents.Web.Services.Response');
if (typeof(Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.LocationResponse) === 'undefined') {
Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.LocationResponse=gtc("Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.LocationResponse");
Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.LocationResponse.registerClass('Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.LocationResponse');
}
