Type.registerNamespace('Biteus.BookMyParty.Ajax');
Biteus.BookMyParty.Ajax.AddressLookup=function() {
Biteus.BookMyParty.Ajax.AddressLookup.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Biteus.BookMyParty.Ajax.AddressLookup.prototype={
GetAddress:function(postcode,succeededCallback, failedCallback, userContext) {
return this._invoke(Biteus.BookMyParty.Ajax.AddressLookup.get_path(), 'GetAddress',false,{postcode:postcode},succeededCallback,failedCallback,userContext); }}
Biteus.BookMyParty.Ajax.AddressLookup.registerClass('Biteus.BookMyParty.Ajax.AddressLookup',Sys.Net.WebServiceProxy);
Biteus.BookMyParty.Ajax.AddressLookup._staticInstance = new Biteus.BookMyParty.Ajax.AddressLookup();
Biteus.BookMyParty.Ajax.AddressLookup.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Biteus.BookMyParty.Ajax.AddressLookup._staticInstance._path = value; }
Biteus.BookMyParty.Ajax.AddressLookup.get_path = function() { return Biteus.BookMyParty.Ajax.AddressLookup._staticInstance._path; }
Biteus.BookMyParty.Ajax.AddressLookup.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); }
Biteus.BookMyParty.Ajax.AddressLookup._staticInstance._timeout = value; }
Biteus.BookMyParty.Ajax.AddressLookup.get_timeout = function() { 
return Biteus.BookMyParty.Ajax.AddressLookup._staticInstance._timeout; }
Biteus.BookMyParty.Ajax.AddressLookup.set_defaultUserContext = function(value) { 
Biteus.BookMyParty.Ajax.AddressLookup._staticInstance._userContext = value; }
Biteus.BookMyParty.Ajax.AddressLookup.get_defaultUserContext = function() { 
return Biteus.BookMyParty.Ajax.AddressLookup._staticInstance._userContext; }
Biteus.BookMyParty.Ajax.AddressLookup.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Biteus.BookMyParty.Ajax.AddressLookup._staticInstance._succeeded = value; }
Biteus.BookMyParty.Ajax.AddressLookup.get_defaultSucceededCallback = function() { 
return Biteus.BookMyParty.Ajax.AddressLookup._staticInstance._succeeded; }
Biteus.BookMyParty.Ajax.AddressLookup.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Biteus.BookMyParty.Ajax.AddressLookup._staticInstance._failed = value; }
Biteus.BookMyParty.Ajax.AddressLookup.get_defaultFailedCallback = function() { 
return Biteus.BookMyParty.Ajax.AddressLookup._staticInstance._failed; }
Biteus.BookMyParty.Ajax.AddressLookup.set_path("/ajaxws/AddressLookup.asmx");
Biteus.BookMyParty.Ajax.AddressLookup.GetAddress= function(postcode,onSuccess,onFailed,userContext) {Biteus.BookMyParty.Ajax.AddressLookup._staticInstance.GetAddress(postcode,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('uk.co.postcodesoftware.ws1');
if (typeof(uk.co.postcodesoftware.ws1.Address) === 'undefined') {
uk.co.postcodesoftware.ws1.Address=gtc("uk.co.postcodesoftware.ws1.Address");
uk.co.postcodesoftware.ws1.Address.registerClass('uk.co.postcodesoftware.ws1.Address');
}
