Type.registerNamespace('BMP.Ajax');
BMP.Ajax.AddressLookup=function() {
BMP.Ajax.AddressLookup.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
BMP.Ajax.AddressLookup.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return BMP.Ajax.AddressLookup._staticInstance.get_path();},
GetAddress:function(postcode,succeededCallback, failedCallback, userContext) {
/// <param name="postcode" 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(), 'GetAddress',false,{postcode:postcode},succeededCallback,failedCallback,userContext); }}
BMP.Ajax.AddressLookup.registerClass('BMP.Ajax.AddressLookup',Sys.Net.WebServiceProxy);
BMP.Ajax.AddressLookup._staticInstance = new BMP.Ajax.AddressLookup();
BMP.Ajax.AddressLookup.set_path = function(value) {
BMP.Ajax.AddressLookup._staticInstance.set_path(value); }
BMP.Ajax.AddressLookup.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return BMP.Ajax.AddressLookup._staticInstance.get_path();}
BMP.Ajax.AddressLookup.set_timeout = function(value) {
BMP.Ajax.AddressLookup._staticInstance.set_timeout(value); }
BMP.Ajax.AddressLookup.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return BMP.Ajax.AddressLookup._staticInstance.get_timeout(); }
BMP.Ajax.AddressLookup.set_defaultUserContext = function(value) { 
BMP.Ajax.AddressLookup._staticInstance.set_defaultUserContext(value); }
BMP.Ajax.AddressLookup.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return BMP.Ajax.AddressLookup._staticInstance.get_defaultUserContext(); }
BMP.Ajax.AddressLookup.set_defaultSucceededCallback = function(value) { 
 BMP.Ajax.AddressLookup._staticInstance.set_defaultSucceededCallback(value); }
BMP.Ajax.AddressLookup.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return BMP.Ajax.AddressLookup._staticInstance.get_defaultSucceededCallback(); }
BMP.Ajax.AddressLookup.set_defaultFailedCallback = function(value) { 
BMP.Ajax.AddressLookup._staticInstance.set_defaultFailedCallback(value); }
BMP.Ajax.AddressLookup.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return BMP.Ajax.AddressLookup._staticInstance.get_defaultFailedCallback(); }
BMP.Ajax.AddressLookup.set_path("/ajaxws/AddressLookup.asmx");
BMP.Ajax.AddressLookup.GetAddress= function(postcode,onSuccess,onFailed,userContext) {
/// <param name="postcode" 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>
BMP.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');
}
