Type.registerNamespace('ShoppingCartnetServices');
ShoppingCartnetServices.InventoryService=function() {
ShoppingCartnetServices.InventoryService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ShoppingCartnetServices.InventoryService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return ShoppingCartnetServices.InventoryService._staticInstance.get_path();},
GetProductStockStatus:function(ProductID,ProductOptions,Quantity,succeededCallback, failedCallback, userContext) {
/// <param name="ProductID" type="Number">System.Int32</param>
/// <param name="ProductOptions" type="Array">System.Object[]</param>
/// <param name="Quantity" 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(), 'GetProductStockStatus',true,{ProductID:ProductID,ProductOptions:ProductOptions,Quantity:Quantity},succeededCallback,failedCallback,userContext); }}
ShoppingCartnetServices.InventoryService.registerClass('ShoppingCartnetServices.InventoryService',Sys.Net.WebServiceProxy);
ShoppingCartnetServices.InventoryService._staticInstance = new ShoppingCartnetServices.InventoryService();
ShoppingCartnetServices.InventoryService.set_path = function(value) {
ShoppingCartnetServices.InventoryService._staticInstance.set_path(value); }
ShoppingCartnetServices.InventoryService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return ShoppingCartnetServices.InventoryService._staticInstance.get_path();}
ShoppingCartnetServices.InventoryService.set_timeout = function(value) {
ShoppingCartnetServices.InventoryService._staticInstance.set_timeout(value); }
ShoppingCartnetServices.InventoryService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return ShoppingCartnetServices.InventoryService._staticInstance.get_timeout(); }
ShoppingCartnetServices.InventoryService.set_defaultUserContext = function(value) { 
ShoppingCartnetServices.InventoryService._staticInstance.set_defaultUserContext(value); }
ShoppingCartnetServices.InventoryService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return ShoppingCartnetServices.InventoryService._staticInstance.get_defaultUserContext(); }
ShoppingCartnetServices.InventoryService.set_defaultSucceededCallback = function(value) { 
 ShoppingCartnetServices.InventoryService._staticInstance.set_defaultSucceededCallback(value); }
ShoppingCartnetServices.InventoryService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return ShoppingCartnetServices.InventoryService._staticInstance.get_defaultSucceededCallback(); }
ShoppingCartnetServices.InventoryService.set_defaultFailedCallback = function(value) { 
ShoppingCartnetServices.InventoryService._staticInstance.set_defaultFailedCallback(value); }
ShoppingCartnetServices.InventoryService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return ShoppingCartnetServices.InventoryService._staticInstance.get_defaultFailedCallback(); }
ShoppingCartnetServices.InventoryService.set_enableJsonp = function(value) { ShoppingCartnetServices.InventoryService._staticInstance.set_enableJsonp(value); }
ShoppingCartnetServices.InventoryService.get_enableJsonp = function() { 
/// <value type="Boolean">Specifies whether the service supports JSONP for cross domain calling.</value>
return ShoppingCartnetServices.InventoryService._staticInstance.get_enableJsonp(); }
ShoppingCartnetServices.InventoryService.set_jsonpCallbackParameter = function(value) { ShoppingCartnetServices.InventoryService._staticInstance.set_jsonpCallbackParameter(value); }
ShoppingCartnetServices.InventoryService.get_jsonpCallbackParameter = function() { 
/// <value type="String">Specifies the parameter name that contains the callback function name for a JSONP request.</value>
return ShoppingCartnetServices.InventoryService._staticInstance.get_jsonpCallbackParameter(); }
ShoppingCartnetServices.InventoryService.set_path("http://www.fakeye.com/Services/InventoryService.svc");
ShoppingCartnetServices.InventoryService.GetProductStockStatus= function(ProductID,ProductOptions,Quantity,onSuccess,onFailed,userContext) {
/// <param name="ProductID" type="Number">System.Int32</param>
/// <param name="ProductOptions" type="Array">System.Object[]</param>
/// <param name="Quantity" 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>
ShoppingCartnetServices.InventoryService._staticInstance.GetProductStockStatus(ProductID,ProductOptions,Quantity,onSuccess,onFailed,userContext); }

