Type.registerNamespace('MemberSearch');
MemberSearch.Postcodes=function() {
MemberSearch.Postcodes.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MemberSearch.Postcodes.prototype={
GetCompletionList:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(MemberSearch.Postcodes.get_path(), 'GetCompletionList',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
GetWorkTypesBtPostcode:function(succeededCallback, failedCallback, userContext) {
return this._invoke(MemberSearch.Postcodes.get_path(), 'GetWorkTypesBtPostcode',false,{},succeededCallback,failedCallback,userContext); }}
MemberSearch.Postcodes.registerClass('MemberSearch.Postcodes',Sys.Net.WebServiceProxy);
MemberSearch.Postcodes._staticInstance = new MemberSearch.Postcodes();
MemberSearch.Postcodes.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; MemberSearch.Postcodes._staticInstance._path = value; }
MemberSearch.Postcodes.get_path = function() { return MemberSearch.Postcodes._staticInstance._path; }
MemberSearch.Postcodes.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
MemberSearch.Postcodes._staticInstance._timeout = value; }
MemberSearch.Postcodes.get_timeout = function() { 
return MemberSearch.Postcodes._staticInstance._timeout; }
MemberSearch.Postcodes.set_defaultUserContext = function(value) { 
MemberSearch.Postcodes._staticInstance._userContext = value; }
MemberSearch.Postcodes.get_defaultUserContext = function() { 
return MemberSearch.Postcodes._staticInstance._userContext; }
MemberSearch.Postcodes.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; MemberSearch.Postcodes._staticInstance._succeeded = value; }
MemberSearch.Postcodes.get_defaultSucceededCallback = function() { 
return MemberSearch.Postcodes._staticInstance._succeeded; }
MemberSearch.Postcodes.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; MemberSearch.Postcodes._staticInstance._failed = value; }
MemberSearch.Postcodes.get_defaultFailedCallback = function() { 
return MemberSearch.Postcodes._staticInstance._failed; }
MemberSearch.Postcodes.set_path("/search/Postcodes.asmx");
MemberSearch.Postcodes.GetCompletionList= function(prefixText,count,onSuccess,onFailed,userContext) {MemberSearch.Postcodes._staticInstance.GetCompletionList(prefixText,count,onSuccess,onFailed,userContext); }
MemberSearch.Postcodes.GetWorkTypesBtPostcode= function(onSuccess,onFailed,userContext) {MemberSearch.Postcodes._staticInstance.GetWorkTypesBtPostcode(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('System.Data');
if (typeof(System.Data.DataSet) === 'undefined') {
System.Data.DataSet=gtc("System.Data.DataSet");
System.Data.DataSet.registerClass('System.Data.DataSet');
}
