1
$client = new SoapClient($host . '/api/v2_soap/?wsdl');
$session = $client->login($apiUser, $apiKey);
$result = $client->catalogInventoryStockItemMultiUpdate($session, 'sku_id1',
array('qty' => 1), null, 'sku');
$result = $client->catalogInventoryStockItemMultiUpdate($session, 'sku_id1',
array('qty' =>2), null, 'sku');
如何使用函數catalogInventoryStockItemMultiUpdate()
或其他決定調用多個函數一個請求?如何使SOAP v2 multiCall到Magento API?
僅適用於soap v1的示例,但不適用於soap v2。