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