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) {
/// <param name="StreetDirPref" type="String">System.String</param>
/// <param name="StreetNum" type="String">System.String</param>
/// <param name="StreetName" type="String">System.String</param>
/// <param name="StreetSuff" type="String">System.String</param>
/// <param name="StreetDirSuff" type="String">System.String</param>
/// <param name="City" type="String">System.String</param>
/// <param name="State" type="String">System.String</param>
/// <param name="ZipCode" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
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) {
/// <param name="ZipCode" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
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() { 
/// <value type="String" mayBeNull="true">The service url.</value>
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() { 
/// <value type="Number">The service timeout.</value>
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() { 
/// <value mayBeNull="true">The service default user context.</value>
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() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
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() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService._staticInstance.get_defaultFailedCallback(); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService.set_path("/RedPlumWidget/services/LocationService.asmx");
Valassis.RedPlum.Web.FrameComponents.Web.Services.LocationService.GetLocation= function(StreetDirPref,StreetNum,StreetName,StreetSuff,StreetDirSuff,City,State,ZipCode,onSuccess,onFailed,userContext) {
/// <param name="StreetDirPref" type="String">System.String</param>
/// <param name="StreetNum" type="String">System.String</param>
/// <param name="StreetName" type="String">System.String</param>
/// <param name="StreetSuff" type="String">System.String</param>
/// <param name="StreetDirSuff" type="String">System.String</param>
/// <param name="City" type="String">System.String</param>
/// <param name="State" type="String">System.String</param>
/// <param name="ZipCode" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
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) {
/// <param name="ZipCode" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
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');
}

