OnRamp for Commerce One MarketSite 3.5 SP1 | webMethods OnRamp for Commerce One MarketSite Adapter Documentation | webMethods OnRamp for CommerceOne MarketSite Adapter Installation and User’s Documentation | Using C1 OnRamp with webMethods Trading Networks | Configure the WmMarketConnectTN Package | Import Document Type Definitions into Trading Networks
 
Import Document Type Definitions into Trading Networks
Trading Networks uses document type definitions to recognize documents and route them to the appropriate processing rules. The WmMarketConnectTN package provides definitions for every xCBL Version 3.5, 3.0, and 2.0 r3 document type; each definition is based on the root tag of the document. You can import the document type definition for each xCBL document you are going to send to Trading Networks for processing.
The document type definitions are located in the Integration Server_directory \packages\WmMarketConnectTN\config\xCBL35, xCBL30, and xCBL20 directories and in the files xCBL35.tnf, xCBL30.tnf, and xCBL20r3.tnf. You can import all document type definitions for a particular version, or you can import only the document type definitions you need. See the Trading Networks documentation for instructions on importing document types.
If you want Trading Networks to determine the version of an incoming xCBL document, you can set up the document type definition to extract the first root node in the document (that is, the document type header or the SOX header).
The WmMarketConnectTN package associates each document type definition with the corresponding record structure in the WmxCBL package. When Trading Networks calls a service such as itswm.tn.doc.xml:bizdocToRecord to get the xCBL document from an envelope and return it as a record, you do not have to identify the record structure for the service.
Use the C1 OnRamp Test Send/Receive utility to make sure Trading Networks can recognize xCBL documents using the document type definitions you imported. (See Test a Service that Sends, Receives, or Processes Envelopes for instructions.)