Mise à jour du stock
Le service de mise à jour du stock est un service entrant, conçu pour les configurations HCL Commerce dans lesquelles un système externe de gestion des stocks est utilisé. Ce service est appelé par le système externe afin de mettre à jour le cache de stock local dans HCL Commerce.
Les demandes adressées à ce service prennent la forme de documents BOD (business object documents) UpdateInventoryBalance. Ce service ne renvoie pas de BOD de réponse.
Mappage
Ce service est mappé à la commande InventoryBalanceUpdate. Le tableau suivant décrit comment le BOD UpdateInventoryBalance sera mappé aux paramètres d'entrée de cette commande :
| XPath | Paramètre d'entrée | Obligatoire | Description |
|---|---|---|---|
| DataArea/InventoryBalance[i] | Cet élément décrit la i-th entrée à mettre à jour dans le cache de stock local. |
||
| DataArea/InventoryBalance[i]/Item/ItemID/ID | catEntryId_i | n | l'ID d'entrée de catalogue HCL Commerce de l'entrée |
| DataArea/InventoryBalance[i]/Item/SupplierItemID/ID | partNumber_i | n | Le numéro de référence (SKU) de l'entrée. |
| DataArea/InventoryBalance[i]/GLEntityID | storeId | y | l'ID du magasin HCL Commerce de l'entrée |
| DataArea/InventoryBalance[i]/Facility/IDs/ID | fulfillmentCenterId_i | y | l'ID de centre de distribution HCL Commerce de l'entrée |
| DataArea/InventoryBalance[i]/AvailableQuantity | inventoryQuantity_i | y | La quantité de l'entrée. |
| DataArea/InventoryBalance[i]/AvailableQuantity/@unitCode | UOM_i | n | L'unité de mesure (UOM) de la quantité ci-dessus. |
Exemple
Voici un exemple de demande :
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecurity-secext-1.0.xsd">
<wsse:UsernameToken>
<wsse:Username>wcsadmin</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wssusername-token-profile-1.0#PasswordText">wcs1admin</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<oa:UpdateInventoryBalance releaseID="9.0"
versionID="9.1"
xmlns:oa="http://www.openapplications.org/oagis/9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openapplications.org/oagis/9
../../../..
/BODs/Developer/UpdateInventoryBalance.xsd ">
<oa:ApplicationArea>
<oa:CreationDateTime>2001-12-31T12:00:00</oa:CreationDateTime>
<oa:BODID>2001-12-31T12:00:00[wcsadmin]localhost</oa:BODID>
</oa:ApplicationArea>
<oa:DataArea>
<oa:Update/>
<oa:InventoryBalance>
<oa:Item>
<oa:ItemID>
<oa:ID>10001</oa:ID>
</oa:ItemID>
</oa:Item>
<oa:GLEntityID>10001</oa:GLEntityID>
<oa:Facility>
<oa:IDs>
<oa:ID>10001</oa:ID>
</oa:IDs>
</oa:Facility>
<oa:AvailableQuantity>1000</oa:AvailableQuantity>
</oa:InventoryBalance>
</oa:DataArea>
</oa:UpdateInventoryBalance>
</soapenv:Body>
</soapenv:Envelope>
WSDL
Le fichier WSDL de ce service se trouve dans le fichier JAR suivant :
- workspace_dir/WebSphereCommerceWebServices.jar
Sous le chemin suivant :
- META-INF/jaxrpc/WebSphereCommerce/WebSphereCommerce-OMS.wsdl