Type.registerNamespace('Services');
Services.ShoppingCart=function() {
Services.ShoppingCart.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Services.ShoppingCart.prototype={
Add:function(MoniqueID,Quantity,ExtendedWarrantyYearCount,succeededCallback, failedCallback, userContext) {
return this._invoke(Services.ShoppingCart.get_path(), 'Add',false,{MoniqueID:MoniqueID,Quantity:Quantity,ExtendedWarrantyYearCount:ExtendedWarrantyYearCount},succeededCallback,failedCallback,userContext); },
GetItems:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Services.ShoppingCart.get_path(), 'GetItems',false,{},succeededCallback,failedCallback,userContext); }}
Services.ShoppingCart.registerClass('Services.ShoppingCart',Sys.Net.WebServiceProxy);
Services.ShoppingCart._staticInstance = new Services.ShoppingCart();
Services.ShoppingCart.set_path = function(value) { Services.ShoppingCart._staticInstance._path = value; }
Services.ShoppingCart.get_path = function() { return Services.ShoppingCart._staticInstance._path; }
Services.ShoppingCart.set_timeout = function(value) { Services.ShoppingCart._staticInstance._timeout = value; }
Services.ShoppingCart.get_timeout = function() { return Services.ShoppingCart._staticInstance._timeout; }
Services.ShoppingCart.set_defaultUserContext = function(value) { Services.ShoppingCart._staticInstance._userContext = value; }
Services.ShoppingCart.get_defaultUserContext = function() { return Services.ShoppingCart._staticInstance._userContext; }
Services.ShoppingCart.set_defaultSucceededCallback = function(value) { Services.ShoppingCart._staticInstance._succeeded = value; }
Services.ShoppingCart.get_defaultSucceededCallback = function() { return Services.ShoppingCart._staticInstance._succeeded; }
Services.ShoppingCart.set_defaultFailedCallback = function(value) { Services.ShoppingCart._staticInstance._failed = value; }
Services.ShoppingCart.get_defaultFailedCallback = function() { return Services.ShoppingCart._staticInstance._failed; }
Services.ShoppingCart.set_path("/ShoppingCart.asmx");
Services.ShoppingCart.Add= function(MoniqueID,Quantity,ExtendedWarrantyYearCount,onSuccess,onFailed,userContext) {Services.ShoppingCart._staticInstance.Add(MoniqueID,Quantity,ExtendedWarrantyYearCount,onSuccess,onFailed,userContext); }
Services.ShoppingCart.GetItems= function(onSuccess,onFailed,userContext) {Services.ShoppingCart._staticInstance.GetItems(onSuccess,onFailed,userContext); }

