WebSphere Commerce 可支援採 XML 格式的入埠與出埠訊息。 各入埠訊息會藉由執行一個控制程式指令, 而在 WebSphere Commerce Server 中呼叫特定規則。 每一個控制程式指令會對 WebSphere Commerce 資料庫與子系統依序執行各項作業。 有些控制程式指令可供多個 XML 訊息執行。 此外,有些訊息可根據訊息內容呼叫不同的指令。
XML 訊息格式由一組定義在特定 DTD 檔中的 XML 元素組成。每一個 DTD 可含有一或多個共通檔案, 且其副檔名為 .mod。此外, 在 sys_template.xml 訊息範本定義檔中,每一個入埠訊息會連結一個 WebSphere Commerce 控制程式指令。 所有的 DTD、MOD 與 XML 檔皆位於下列目錄中:
drive:\Program
Files\WebSphere\CommerceServer\xml\messaging
drive:\WebSphere\CommerceServer\xml\messaging
/usr/WebSphere/CommerceServer/xml/messaging
/opt/WebSphere/CommerceServer/xml/messaging
/QIBM/Proddata/WebCommerce/xml/messaging
下表概述使用的入埠訊息及它們所呼叫的控制程式指令:
XML 訊息 | 說明 | 控制程式指令 |
---|---|---|
Create_WCS_Customer, Create_NC_Customer | 建立新使用者的登錄記錄,或更新現有使用者的記錄。 | UserRegistrationAdd |
Update_NC_Customer, Update_WCS_Customer | 更新現有使用者的登錄記錄。 | UserRegistrationUpdate |
Update_WCS_OrderStatus, Update_NC_OrderStatus | 更新訂單的一般狀態。 | OrderStatus |
Update_WCS_OrderStatus | 更新訂單的確認狀態。 | OrderConfirmStatus |
Update_WCS_OrderStatus | 更新訂單的出貨狀態。 | OrderShippingStatus |
Update_WCS_OrderStatus | 更新訂單的發票狀態。 | OrderInvoiceStatus |
Update_WCS_ProductPrice, Update_NC_ProductPrice | 更新產品的優惠價格資訊。 | ProductOfferPriceUpdate |
Update_WCS_ProductPrice | 更新訂單的標價資訊。 | ProductListPriceUpdate |
Update_NC_ProductInventory Update_WCS_ProductInventory |
更新產品的庫存量資訊。 | ProductInventoryUpdate |
附註:有些訊息的名稱中含有字母 NC,有些則含有名稱 WCS。 凡名稱中含有字母 NC 的訊息都是舊版 WebSphere Commerce 中的 XML 訊息。 而名稱中含有 WCS 的訊息則是採用更新過的格式, 而可提供較大的彈性。一般而言,建議您使用 WCS 版本,其中可有較多的選擇。
下表說明出埠傳訊系統所用的後端整合訊息以及產生該訊息的指令:
XML 訊息 | 說明 | 控制程式指令 |
---|---|---|
Report_NC_PurchaseOrder |
將訊息傳給內含新訂單資訊的後端系統。 | SendXMLOrder |
![]() |