var ShopService=function() {
ShopService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ShopService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return ShopService._staticInstance.get_path();},
HelloWorld:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'HelloWorld',false,{},succeededCallback,failedCallback,userContext); },
AddUp:function(num1,num2,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddUp',false,{num1:num1,num2:num2},succeededCallback,failedCallback,userContext); },
getDiscount:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getDiscount',false,{},succeededCallback,failedCallback,userContext); },
setVoucher:function(voucherCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'setVoucher',false,{voucherCode:voucherCode},succeededCallback,failedCallback,userContext); },
RemoveFromBasket:function(basketindex,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RemoveFromBasket',false,{basketindex:basketindex},succeededCallback,failedCallback,userContext); },
returnitem:function(basketindex,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'returnitem',false,{basketindex:basketindex},succeededCallback,failedCallback,userContext); },
GetsetPostageCost:function(post,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetsetPostageCost',false,{post:post},succeededCallback,failedCallback,userContext); },
GetNewTotal:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNewTotal',false,{},succeededCallback,failedCallback,userContext); },
AddItem:function(xid,xattrib,xqty,xmessage,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddItem',false,{xid:xid,xattrib:xattrib,xqty:xqty,xmessage:xmessage},succeededCallback,failedCallback,userContext); },
BasketCount:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'BasketCount',false,{},succeededCallback,failedCallback,userContext); }}
ShopService.registerClass('ShopService',Sys.Net.WebServiceProxy);
ShopService._staticInstance = new ShopService();
ShopService.set_path = function(value) { ShopService._staticInstance.set_path(value); }
ShopService.get_path = function() { return ShopService._staticInstance.get_path(); }
ShopService.set_timeout = function(value) { ShopService._staticInstance.set_timeout(value); }
ShopService.get_timeout = function() { return ShopService._staticInstance.get_timeout(); }
ShopService.set_defaultUserContext = function(value) { ShopService._staticInstance.set_defaultUserContext(value); }
ShopService.get_defaultUserContext = function() { return ShopService._staticInstance.get_defaultUserContext(); }
ShopService.set_defaultSucceededCallback = function(value) { ShopService._staticInstance.set_defaultSucceededCallback(value); }
ShopService.get_defaultSucceededCallback = function() { return ShopService._staticInstance.get_defaultSucceededCallback(); }
ShopService.set_defaultFailedCallback = function(value) { ShopService._staticInstance.set_defaultFailedCallback(value); }
ShopService.get_defaultFailedCallback = function() { return ShopService._staticInstance.get_defaultFailedCallback(); }
ShopService.set_path("/_Shop/ShopService.asmx");
ShopService.HelloWorld= function(onSuccess,onFailed,userContext) {ShopService._staticInstance.HelloWorld(onSuccess,onFailed,userContext); }
ShopService.AddUp= function(num1,num2,onSuccess,onFailed,userContext) {ShopService._staticInstance.AddUp(num1,num2,onSuccess,onFailed,userContext); }
ShopService.getDiscount= function(onSuccess,onFailed,userContext) {ShopService._staticInstance.getDiscount(onSuccess,onFailed,userContext); }
ShopService.setVoucher= function(voucherCode,onSuccess,onFailed,userContext) {ShopService._staticInstance.setVoucher(voucherCode,onSuccess,onFailed,userContext); }
ShopService.RemoveFromBasket= function(basketindex,onSuccess,onFailed,userContext) {ShopService._staticInstance.RemoveFromBasket(basketindex,onSuccess,onFailed,userContext); }
ShopService.returnitem= function(basketindex,onSuccess,onFailed,userContext) {ShopService._staticInstance.returnitem(basketindex,onSuccess,onFailed,userContext); }
ShopService.GetsetPostageCost= function(post,onSuccess,onFailed,userContext) {ShopService._staticInstance.GetsetPostageCost(post,onSuccess,onFailed,userContext); }
ShopService.GetNewTotal= function(onSuccess,onFailed,userContext) {ShopService._staticInstance.GetNewTotal(onSuccess,onFailed,userContext); }
ShopService.AddItem= function(xid,xattrib,xqty,xmessage,onSuccess,onFailed,userContext) {ShopService._staticInstance.AddItem(xid,xattrib,xqty,xmessage,onSuccess,onFailed,userContext); }
ShopService.BasketCount= function(onSuccess,onFailed,userContext) {ShopService._staticInstance.BasketCount(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Denaploy.Shop');
if (typeof(Denaploy.Shop.Item) === 'undefined') {
Denaploy.Shop.Item=gtc("Denaploy.Shop.Item");
Denaploy.Shop.Item.registerClass('Denaploy.Shop.Item');
}
