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