Type.registerNamespace('STP');
STP.ClientWebService=function() {
STP.ClientWebService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
STP.ClientWebService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return STP.ClientWebService._staticInstance.get_path();},
AddToCart:function(qty,itemID,itemType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddToCart',false,{qty:qty,itemID:itemID,itemType:itemType},succeededCallback,failedCallback,userContext); }}
STP.ClientWebService.registerClass('STP.ClientWebService',Sys.Net.WebServiceProxy);
STP.ClientWebService._staticInstance = new STP.ClientWebService();
STP.ClientWebService.set_path = function(value) { STP.ClientWebService._staticInstance.set_path(value); }
STP.ClientWebService.get_path = function() { return STP.ClientWebService._staticInstance.get_path(); }
STP.ClientWebService.set_timeout = function(value) { STP.ClientWebService._staticInstance.set_timeout(value); }
STP.ClientWebService.get_timeout = function() { return STP.ClientWebService._staticInstance.get_timeout(); }
STP.ClientWebService.set_defaultUserContext = function(value) { STP.ClientWebService._staticInstance.set_defaultUserContext(value); }
STP.ClientWebService.get_defaultUserContext = function() { return STP.ClientWebService._staticInstance.get_defaultUserContext(); }
STP.ClientWebService.set_defaultSucceededCallback = function(value) { STP.ClientWebService._staticInstance.set_defaultSucceededCallback(value); }
STP.ClientWebService.get_defaultSucceededCallback = function() { return STP.ClientWebService._staticInstance.get_defaultSucceededCallback(); }
STP.ClientWebService.set_defaultFailedCallback = function(value) { STP.ClientWebService._staticInstance.set_defaultFailedCallback(value); }
STP.ClientWebService.get_defaultFailedCallback = function() { return STP.ClientWebService._staticInstance.get_defaultFailedCallback(); }
STP.ClientWebService.set_path("/ClientWebService.asmx");
STP.ClientWebService.AddToCart= function(qty,itemID,itemType,onSuccess,onFailed,userContext) {STP.ClientWebService._staticInstance.AddToCart(qty,itemID,itemType,onSuccess,onFailed,userContext); }
