新增採購的新訊息對映程式

使用 XML/HTTP 通訊協定的採購系統必須有訊息對映程式,以便能順利與 WebSphere Commerce 通訊。

如果要新增新的訊息對映程式,請執行下列步驟:

  1. 必要時,建立實作 com.ibm.commerce.programadapter.messagemapper 介面的類別。
  2. 在實例配置 XML 檔案中, 以手動方式在訊息對映程式群組中,新增新的訊息對映程式:
    <MessageMapper messageMapperId="#"
    classname="class implementing MessageMapper interface"
            enable="true"
    name="Name of MessageMapper">  
      <configuration
    ECSystemTemplateFile="mapping.xml" EcTemplatePath="e:\newmappingfilepath"
    ECInboundMessageDtdFile="newmwssage.dtd" ECInboundMessageDtdPath="e:\newmessages\dtd" />
        </MessageMapper>
    

    若為 Ariba cXML 訊息對映程式, 配置項目看來會如下所示:

    <MessageMapper messageMapperId="-3"
    classname="com.ibm.commerce.messaging.programadapter.messagemapper.ecsax.ECSAXMessageMapper"
            enable="true"
    name="WCBE.ARIBA">
      <configuration
    EcSystemTemplateFile="ariba_sys_template.xml"
    EcTemplatePath="H:\ariba"
    EcInboundMessageDtdFiles="cXML.dtd"
    EcInboundMessageDtdPath="H:\ariba"
    />
        </MessageMapper>
    
  3. 為採購通訊協定訊息建立一個對映檔。請將這個檔案置於配置 XML 檔案的配置區段中的 EcTemplatePath 所指定的目錄中。