Type.registerNamespace('LocationExtender');
LocationExtender.Location=function() {
LocationExtender.Location.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
LocationExtender.Location.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return LocationExtender.Location._staticInstance.get_path();},
GetMessage:function(zipCode,CityName,succeededCallback, failedCallback, userContext) {
/// <param name="zipCode" type="String">System.String</param>
/// <param name="CityName" 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(), 'GetMessage',false,{zipCode:zipCode,CityName:CityName},succeededCallback,failedCallback,userContext); },
GetMessage_SelectedCity:function(zipCode,CityName,succeededCallback, failedCallback, userContext) {
/// <param name="zipCode" type="String">System.String</param>
/// <param name="CityName" 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(), 'GetMessage_SelectedCity',false,{zipCode:zipCode,CityName:CityName},succeededCallback,failedCallback,userContext); },
GetState:function(zipCode,CityName,succeededCallback, failedCallback, userContext) {
/// <param name="zipCode" type="String">System.String</param>
/// <param name="CityName" 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(), 'GetState',false,{zipCode:zipCode,CityName:CityName},succeededCallback,failedCallback,userContext); }}
LocationExtender.Location.registerClass('LocationExtender.Location',Sys.Net.WebServiceProxy);
LocationExtender.Location._staticInstance = new LocationExtender.Location();
LocationExtender.Location.set_path = function(value) {
LocationExtender.Location._staticInstance.set_path(value); }
LocationExtender.Location.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return LocationExtender.Location._staticInstance.get_path();}
LocationExtender.Location.set_timeout = function(value) {
LocationExtender.Location._staticInstance.set_timeout(value); }
LocationExtender.Location.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return LocationExtender.Location._staticInstance.get_timeout(); }
LocationExtender.Location.set_defaultUserContext = function(value) { 
LocationExtender.Location._staticInstance.set_defaultUserContext(value); }
LocationExtender.Location.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return LocationExtender.Location._staticInstance.get_defaultUserContext(); }
LocationExtender.Location.set_defaultSucceededCallback = function(value) { 
 LocationExtender.Location._staticInstance.set_defaultSucceededCallback(value); }
LocationExtender.Location.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return LocationExtender.Location._staticInstance.get_defaultSucceededCallback(); }
LocationExtender.Location.set_defaultFailedCallback = function(value) { 
LocationExtender.Location._staticInstance.set_defaultFailedCallback(value); }
LocationExtender.Location.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return LocationExtender.Location._staticInstance.get_defaultFailedCallback(); }
LocationExtender.Location.set_enableJsonp = function(value) { LocationExtender.Location._staticInstance.set_enableJsonp(value); }
LocationExtender.Location.get_enableJsonp = function() { 
/// <value type="Boolean">Specifies whether the service supports JSONP for cross domain calling.</value>
return LocationExtender.Location._staticInstance.get_enableJsonp(); }
LocationExtender.Location.set_jsonpCallbackParameter = function(value) { LocationExtender.Location._staticInstance.set_jsonpCallbackParameter(value); }
LocationExtender.Location.get_jsonpCallbackParameter = function() { 
/// <value type="String">Specifies the parameter name that contains the callback function name for a JSONP request.</value>
return LocationExtender.Location._staticInstance.get_jsonpCallbackParameter(); }
LocationExtender.Location.set_path("/Location.asmx");
LocationExtender.Location.GetMessage= function(zipCode,CityName,onSuccess,onFailed,userContext) {
/// <param name="zipCode" type="String">System.String</param>
/// <param name="CityName" 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>
LocationExtender.Location._staticInstance.GetMessage(zipCode,CityName,onSuccess,onFailed,userContext); }
LocationExtender.Location.GetMessage_SelectedCity= function(zipCode,CityName,onSuccess,onFailed,userContext) {
/// <param name="zipCode" type="String">System.String</param>
/// <param name="CityName" 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>
LocationExtender.Location._staticInstance.GetMessage_SelectedCity(zipCode,CityName,onSuccess,onFailed,userContext); }
LocationExtender.Location.GetState= function(zipCode,CityName,onSuccess,onFailed,userContext) {
/// <param name="zipCode" type="String">System.String</param>
/// <param name="CityName" 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>
LocationExtender.Location._staticInstance.GetState(zipCode,CityName,onSuccess,onFailed,userContext); }

