Type.registerNamespace('GeoSelectorWS');
GeoSelectorWS.Service=function() {
GeoSelectorWS.Service.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
GeoSelectorWS.Service.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return GeoSelectorWS.Service._staticInstance.get_path();},
GetData:function(type,code,hasStates,succeededCallback, failedCallback, userContext) {
/// <param name="type" type="GeoSelectorWS.GeoType">GeoSelectorWS.GeoType</param>
/// <param name="code" type="String">System.String</param>
/// <param name="hasStates" type="Boolean">System.Boolean</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(), 'GetData',false,{type:type,code:code,hasStates:hasStates},succeededCallback,failedCallback,userContext); }}
GeoSelectorWS.Service.registerClass('GeoSelectorWS.Service',Sys.Net.WebServiceProxy);
GeoSelectorWS.Service._staticInstance = new GeoSelectorWS.Service();
GeoSelectorWS.Service.set_path = function(value) {
GeoSelectorWS.Service._staticInstance.set_path(value); }
GeoSelectorWS.Service.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return GeoSelectorWS.Service._staticInstance.get_path();}
GeoSelectorWS.Service.set_timeout = function(value) {
GeoSelectorWS.Service._staticInstance.set_timeout(value); }
GeoSelectorWS.Service.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return GeoSelectorWS.Service._staticInstance.get_timeout(); }
GeoSelectorWS.Service.set_defaultUserContext = function(value) { 
GeoSelectorWS.Service._staticInstance.set_defaultUserContext(value); }
GeoSelectorWS.Service.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return GeoSelectorWS.Service._staticInstance.get_defaultUserContext(); }
GeoSelectorWS.Service.set_defaultSucceededCallback = function(value) { 
 GeoSelectorWS.Service._staticInstance.set_defaultSucceededCallback(value); }
GeoSelectorWS.Service.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return GeoSelectorWS.Service._staticInstance.get_defaultSucceededCallback(); }
GeoSelectorWS.Service.set_defaultFailedCallback = function(value) { 
GeoSelectorWS.Service._staticInstance.set_defaultFailedCallback(value); }
GeoSelectorWS.Service.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return GeoSelectorWS.Service._staticInstance.get_defaultFailedCallback(); }
GeoSelectorWS.Service.set_path("/GeoSelectorWS.asmx");
GeoSelectorWS.Service.GetData= function(type,code,hasStates,onSuccess,onFailed,userContext) {
/// <param name="type" type="GeoSelectorWS.GeoType">GeoSelectorWS.GeoType</param>
/// <param name="code" type="String">System.String</param>
/// <param name="hasStates" type="Boolean">System.Boolean</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>
GeoSelectorWS.Service._staticInstance.GetData(type,code,hasStates,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(GeoSelectorWS.GeoData) === 'undefined') {
GeoSelectorWS.GeoData=gtc("GeoSelectorWS.GeoData");
GeoSelectorWS.GeoData.registerClass('GeoSelectorWS.GeoData');
}
if (typeof(GeoSelectorWS.GeoType) === 'undefined') {
GeoSelectorWS.GeoType = function() { throw Error.invalidOperation(); }
GeoSelectorWS.GeoType.prototype = {World: 0,Continent: 1,Country: 2,State: 3,City: 4,Airport: 5}
GeoSelectorWS.GeoType.registerEnum('GeoSelectorWS.GeoType', true);
}
