默认情况下,在magento目录资源清册中选中“使用默认值”复选框

默认情况下,在magento目录资源清册中选中“使用默认值”复选框,magento,soap,magento-1.9,soapserver,Magento,Soap,Magento 1.9,Soapserver,我尝试了下面的代码将产品添加到magento目录清单中,但该复选框仍处于选中状态,如何取消选中magento目录清单中的“使用默认值”复选框,任何人请帮助我 catalogInventoryStockItemUpdateEntity inventory = new catalogInventoryStockItemUpdateEntity(); inventory.qty = "0"; inventory.manage_stock =1; inventory.use_default_websit

我尝试了下面的代码将产品添加到magento目录清单中,但该复选框仍处于选中状态,如何取消选中magento目录清单中的“使用默认值”复选框,任何人请帮助我

catalogInventoryStockItemUpdateEntity inventory = new catalogInventoryStockItemUpdateEntity();
inventory.qty = "0";
inventory.manage_stock =1;
inventory.use_default_website_stock = 0;
inventory.use_default_website_stockSpecified = false;
catalogProductCreateEntity productEntity = new catalogProductCreateEntity();
productEntity.stock_data=inventory;
var client = new Mage_Api_Model_Server_V2_HandlerPortTypeClient();
    client.catalogProductUpdate(sessionId, productId, productEntity, storeView, "ID"); 
当我使用上面的代码时,我得到了magento目录清单,如下图所示