Type.registerNamespace('Autex.GreenStuf.WebService');
Autex.GreenStuf.WebService.IPostCodeService=function() {
Autex.GreenStuf.WebService.IPostCodeService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Autex.GreenStuf.WebService.IPostCodeService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Autex.GreenStuf.WebService.IPostCodeService._staticInstance.get_path();},
FindMatches:function(street,suburb,district,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'FindMatches',false,{street:street,suburb:suburb,district:district},succeededCallback,failedCallback,userContext); },
LookUp:function(postCode,street,suburb,district,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'LookUp',false,{postCode:postCode,street:street,suburb:suburb,district:district},succeededCallback,failedCallback,userContext); }}
Autex.GreenStuf.WebService.IPostCodeService.registerClass('Autex.GreenStuf.WebService.IPostCodeService',Sys.Net.WebServiceProxy);
Autex.GreenStuf.WebService.IPostCodeService._staticInstance = new Autex.GreenStuf.WebService.IPostCodeService();
Autex.GreenStuf.WebService.IPostCodeService.set_path = function(value) { Autex.GreenStuf.WebService.IPostCodeService._staticInstance.set_path(value); }
Autex.GreenStuf.WebService.IPostCodeService.get_path = function() { return Autex.GreenStuf.WebService.IPostCodeService._staticInstance.get_path(); }
Autex.GreenStuf.WebService.IPostCodeService.set_timeout = function(value) { Autex.GreenStuf.WebService.IPostCodeService._staticInstance.set_timeout(value); }
Autex.GreenStuf.WebService.IPostCodeService.get_timeout = function() { return Autex.GreenStuf.WebService.IPostCodeService._staticInstance.get_timeout(); }
Autex.GreenStuf.WebService.IPostCodeService.set_defaultUserContext = function(value) { Autex.GreenStuf.WebService.IPostCodeService._staticInstance.set_defaultUserContext(value); }
Autex.GreenStuf.WebService.IPostCodeService.get_defaultUserContext = function() { return Autex.GreenStuf.WebService.IPostCodeService._staticInstance.get_defaultUserContext(); }
Autex.GreenStuf.WebService.IPostCodeService.set_defaultSucceededCallback = function(value) { Autex.GreenStuf.WebService.IPostCodeService._staticInstance.set_defaultSucceededCallback(value); }
Autex.GreenStuf.WebService.IPostCodeService.get_defaultSucceededCallback = function() { return Autex.GreenStuf.WebService.IPostCodeService._staticInstance.get_defaultSucceededCallback(); }
Autex.GreenStuf.WebService.IPostCodeService.set_defaultFailedCallback = function(value) { Autex.GreenStuf.WebService.IPostCodeService._staticInstance.set_defaultFailedCallback(value); }
Autex.GreenStuf.WebService.IPostCodeService.get_defaultFailedCallback = function() { return Autex.GreenStuf.WebService.IPostCodeService._staticInstance.get_defaultFailedCallback(); }
Autex.GreenStuf.WebService.IPostCodeService.set_path("/services/PostCodeService.svc");
Autex.GreenStuf.WebService.IPostCodeService.FindMatches= function(street,suburb,district,onSuccess,onFailed,userContext) {Autex.GreenStuf.WebService.IPostCodeService._staticInstance.FindMatches(street,suburb,district,onSuccess,onFailed,userContext); }
Autex.GreenStuf.WebService.IPostCodeService.LookUp= function(postCode,street,suburb,district,onSuccess,onFailed,userContext) {Autex.GreenStuf.WebService.IPostCodeService._staticInstance.LookUp(postCode,street,suburb,district,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Autex.GreenStuf.WebService.PostCodeAddressSummary) === 'undefined') {
Autex.GreenStuf.WebService.PostCodeAddressSummary=gtc("PostCodeAddressSummary:Autex.GreenStuf.WebService");
Autex.GreenStuf.WebService.PostCodeAddressSummary.registerClass('Autex.GreenStuf.WebService.PostCodeAddressSummary');
}
