Type.registerNamespace('HRDB.webservices');
HRDB.webservices.horsetypeahead=function() {
HRDB.webservices.horsetypeahead.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
HRDB.webservices.horsetypeahead.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return HRDB.webservices.horsetypeahead._staticInstance.get_path();},
GetHorsesByExactName:function(horseName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetHorsesByExactName',false,{horseName:horseName},succeededCallback,failedCallback,userContext); },
GetHorsesByName:function(prefixText,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetHorsesByName',false,{prefixText:prefixText},succeededCallback,failedCallback,userContext); },
GetHorses:function(typeValue,hguid,filterSex,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetHorses',false,{typeValue:typeValue,hguid:hguid,filterSex:filterSex},succeededCallback,failedCallback,userContext); },
GetHorseByGuid:function(hguid,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetHorseByGuid',false,{hguid:hguid},succeededCallback,failedCallback,userContext); },
SavePedigree:function(hguid,pGuid,pHorseName,pCountryCd,pYearBred,pSex,currentUserName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SavePedigree',false,{hguid:hguid,pGuid:pGuid,pHorseName:pHorseName,pCountryCd:pCountryCd,pYearBred:pYearBred,pSex:pSex,currentUserName:currentUserName},succeededCallback,failedCallback,userContext); }}
HRDB.webservices.horsetypeahead.registerClass('HRDB.webservices.horsetypeahead',Sys.Net.WebServiceProxy);
HRDB.webservices.horsetypeahead._staticInstance = new HRDB.webservices.horsetypeahead();
HRDB.webservices.horsetypeahead.set_path = function(value) { HRDB.webservices.horsetypeahead._staticInstance.set_path(value); }
HRDB.webservices.horsetypeahead.get_path = function() { return HRDB.webservices.horsetypeahead._staticInstance.get_path(); }
HRDB.webservices.horsetypeahead.set_timeout = function(value) { HRDB.webservices.horsetypeahead._staticInstance.set_timeout(value); }
HRDB.webservices.horsetypeahead.get_timeout = function() { return HRDB.webservices.horsetypeahead._staticInstance.get_timeout(); }
HRDB.webservices.horsetypeahead.set_defaultUserContext = function(value) { HRDB.webservices.horsetypeahead._staticInstance.set_defaultUserContext(value); }
HRDB.webservices.horsetypeahead.get_defaultUserContext = function() { return HRDB.webservices.horsetypeahead._staticInstance.get_defaultUserContext(); }
HRDB.webservices.horsetypeahead.set_defaultSucceededCallback = function(value) { HRDB.webservices.horsetypeahead._staticInstance.set_defaultSucceededCallback(value); }
HRDB.webservices.horsetypeahead.get_defaultSucceededCallback = function() { return HRDB.webservices.horsetypeahead._staticInstance.get_defaultSucceededCallback(); }
HRDB.webservices.horsetypeahead.set_defaultFailedCallback = function(value) { HRDB.webservices.horsetypeahead._staticInstance.set_defaultFailedCallback(value); }
HRDB.webservices.horsetypeahead.get_defaultFailedCallback = function() { return HRDB.webservices.horsetypeahead._staticInstance.get_defaultFailedCallback(); }
HRDB.webservices.horsetypeahead.set_path("/webservices/horsetypeahead.asmx");
HRDB.webservices.horsetypeahead.GetHorsesByExactName= function(horseName,onSuccess,onFailed,userContext) {HRDB.webservices.horsetypeahead._staticInstance.GetHorsesByExactName(horseName,onSuccess,onFailed,userContext); }
HRDB.webservices.horsetypeahead.GetHorsesByName= function(prefixText,onSuccess,onFailed,userContext) {HRDB.webservices.horsetypeahead._staticInstance.GetHorsesByName(prefixText,onSuccess,onFailed,userContext); }
HRDB.webservices.horsetypeahead.GetHorses= function(typeValue,hguid,filterSex,onSuccess,onFailed,userContext) {HRDB.webservices.horsetypeahead._staticInstance.GetHorses(typeValue,hguid,filterSex,onSuccess,onFailed,userContext); }
HRDB.webservices.horsetypeahead.GetHorseByGuid= function(hguid,onSuccess,onFailed,userContext) {HRDB.webservices.horsetypeahead._staticInstance.GetHorseByGuid(hguid,onSuccess,onFailed,userContext); }
HRDB.webservices.horsetypeahead.SavePedigree= function(hguid,pGuid,pHorseName,pCountryCd,pYearBred,pSex,currentUserName,onSuccess,onFailed,userContext) {HRDB.webservices.horsetypeahead._staticInstance.SavePedigree(hguid,pGuid,pHorseName,pCountryCd,pYearBred,pSex,currentUserName,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('HRDB.Core.BusinessEntities');
if (typeof(HRDB.Core.BusinessEntities.HorseName) === 'undefined') {
HRDB.Core.BusinessEntities.HorseName=gtc("HRDB.Core.BusinessEntities.HorseName");
HRDB.Core.BusinessEntities.HorseName.registerClass('HRDB.Core.BusinessEntities.HorseName');
}

