var Pharmacy=function() {
Pharmacy.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Pharmacy.prototype={
getPharmacy:function(prefixText,count,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(Pharmacy.get_path(), 'getPharmacy',false,{prefixText:prefixText,count:count,contextKey:contextKey},succeededCallback,failedCallback,userContext); }}
Pharmacy.registerClass('Pharmacy',Sys.Net.WebServiceProxy);
Pharmacy._staticInstance = new Pharmacy();
Pharmacy.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Pharmacy._staticInstance._path = value; }
Pharmacy.get_path = function() { return Pharmacy._staticInstance._path; }
Pharmacy.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); }
Pharmacy._staticInstance._timeout = value; }
Pharmacy.get_timeout = function() { 
return Pharmacy._staticInstance._timeout; }
Pharmacy.set_defaultUserContext = function(value) { 
Pharmacy._staticInstance._userContext = value; }
Pharmacy.get_defaultUserContext = function() { 
return Pharmacy._staticInstance._userContext; }
Pharmacy.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Pharmacy._staticInstance._succeeded = value; }
Pharmacy.get_defaultSucceededCallback = function() { 
return Pharmacy._staticInstance._succeeded; }
Pharmacy.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Pharmacy._staticInstance._failed = value; }
Pharmacy.get_defaultFailedCallback = function() { 
return Pharmacy._staticInstance._failed; }
Pharmacy.set_path("/resources/services/pharmacy.asmx");
Pharmacy.getPharmacy= function(prefixText,count,contextKey,onSuccess,onFailed,userContext) {Pharmacy._staticInstance.getPharmacy(prefixText,count,contextKey,onSuccess,onFailed,userContext); }
