Type.registerNamespace('CeoNet.Web.WebFormsApplication.App_Service');
CeoNet.Web.WebFormsApplication.App_Service.ECommerce=function() {
CeoNet.Web.WebFormsApplication.App_Service.ECommerce.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CeoNet.Web.WebFormsApplication.App_Service.ECommerce.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return CeoNet.Web.WebFormsApplication.App_Service.ECommerce._staticInstance.get_path();},
GetCartStatus:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetCartStatus',false,{},succeededCallback,failedCallback,userContext); },
AddNewItemToCart:function(s,p,q,succeededCallback, failedCallback, userContext) {
/// <param name="s" type="String">System.String</param>
/// <param name="p" type="String">System.String</param>
/// <param name="q" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'AddNewItemToCart',false,{s:s,p:p,q:q},succeededCallback,failedCallback,userContext); }}
CeoNet.Web.WebFormsApplication.App_Service.ECommerce.registerClass('CeoNet.Web.WebFormsApplication.App_Service.ECommerce',Sys.Net.WebServiceProxy);
CeoNet.Web.WebFormsApplication.App_Service.ECommerce._staticInstance = new CeoNet.Web.WebFormsApplication.App_Service.ECommerce();
CeoNet.Web.WebFormsApplication.App_Service.ECommerce.set_path = function(value) {
CeoNet.Web.WebFormsApplication.App_Service.ECommerce._staticInstance.set_path(value); }
CeoNet.Web.WebFormsApplication.App_Service.ECommerce.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return CeoNet.Web.WebFormsApplication.App_Service.ECommerce._staticInstance.get_path();}
CeoNet.Web.WebFormsApplication.App_Service.ECommerce.set_timeout = function(value) {
CeoNet.Web.WebFormsApplication.App_Service.ECommerce._staticInstance.set_timeout(value); }
CeoNet.Web.WebFormsApplication.App_Service.ECommerce.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return CeoNet.Web.WebFormsApplication.App_Service.ECommerce._staticInstance.get_timeout(); }
CeoNet.Web.WebFormsApplication.App_Service.ECommerce.set_defaultUserContext = function(value) { 
CeoNet.Web.WebFormsApplication.App_Service.ECommerce._staticInstance.set_defaultUserContext(value); }
CeoNet.Web.WebFormsApplication.App_Service.ECommerce.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return CeoNet.Web.WebFormsApplication.App_Service.ECommerce._staticInstance.get_defaultUserContext(); }
CeoNet.Web.WebFormsApplication.App_Service.ECommerce.set_defaultSucceededCallback = function(value) { 
 CeoNet.Web.WebFormsApplication.App_Service.ECommerce._staticInstance.set_defaultSucceededCallback(value); }
CeoNet.Web.WebFormsApplication.App_Service.ECommerce.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return CeoNet.Web.WebFormsApplication.App_Service.ECommerce._staticInstance.get_defaultSucceededCallback(); }
CeoNet.Web.WebFormsApplication.App_Service.ECommerce.set_defaultFailedCallback = function(value) { 
CeoNet.Web.WebFormsApplication.App_Service.ECommerce._staticInstance.set_defaultFailedCallback(value); }
CeoNet.Web.WebFormsApplication.App_Service.ECommerce.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return CeoNet.Web.WebFormsApplication.App_Service.ECommerce._staticInstance.get_defaultFailedCallback(); }
CeoNet.Web.WebFormsApplication.App_Service.ECommerce.set_enableJsonp = function(value) { CeoNet.Web.WebFormsApplication.App_Service.ECommerce._staticInstance.set_enableJsonp(value); }
CeoNet.Web.WebFormsApplication.App_Service.ECommerce.get_enableJsonp = function() { 
/// <value type="Boolean">Specifies whether the service supports JSONP for cross domain calling.</value>
return CeoNet.Web.WebFormsApplication.App_Service.ECommerce._staticInstance.get_enableJsonp(); }
CeoNet.Web.WebFormsApplication.App_Service.ECommerce.set_jsonpCallbackParameter = function(value) { CeoNet.Web.WebFormsApplication.App_Service.ECommerce._staticInstance.set_jsonpCallbackParameter(value); }
CeoNet.Web.WebFormsApplication.App_Service.ECommerce.get_jsonpCallbackParameter = function() { 
/// <value type="String">Specifies the parameter name that contains the callback function name for a JSONP request.</value>
return CeoNet.Web.WebFormsApplication.App_Service.ECommerce._staticInstance.get_jsonpCallbackParameter(); }
CeoNet.Web.WebFormsApplication.App_Service.ECommerce.set_path("/App_Service/ECommerce.asmx");
CeoNet.Web.WebFormsApplication.App_Service.ECommerce.GetCartStatus= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
CeoNet.Web.WebFormsApplication.App_Service.ECommerce._staticInstance.GetCartStatus(onSuccess,onFailed,userContext); }
CeoNet.Web.WebFormsApplication.App_Service.ECommerce.AddNewItemToCart= function(s,p,q,onSuccess,onFailed,userContext) {
/// <param name="s" type="String">System.String</param>
/// <param name="p" type="String">System.String</param>
/// <param name="q" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
CeoNet.Web.WebFormsApplication.App_Service.ECommerce._staticInstance.AddNewItemToCart(s,p,q,onSuccess,onFailed,userContext); }

