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