Use the Business Connect XML mapping utility to create a relationship between the document type definition (DTD) files you receive from your trading partners and Eclipse data. Define the relationship by creating a transaction map.
Creating an XML transaction map requires completing the following tasks:
To better understand the layout of the mapping utility, see Business Connect XML Mapping Utility Main Window Aspects.
Note: If you need to modify the XML data, modify the mapping characteristics after creating the XML transaction map.
Create transaction maps for each transaction you want to trade with each trading partner. Before you can create a transaction map, you must work with your trading partner to obtain DTD files and document specifications. DTD files define the data that is contained within each document you trade using XML. For more information, see Getting Started with Business Connect XML.
A transaction can be a received-only transaction with no reply document, or a sent-to only transaction with no received document.
To define the transaction type and select the DTD files:
Access the Business Connect XML mapping utility and select the trading partner for which you want to define a transaction.
Right-click the trading partner and select New Transaction Map to display the New Transaction Map dialog box.
In the Transaction Name field, enter the name of the transaction, such as Purchase Order. The name you enter here displays in the Trading Partners Tree under the trading partner.
In the Transaction Source field, enter the portal or marketplace the trading partner uses for the transaction. Entering a transaction source allows you to sort by the source in the remote review queues within Eclipse.
Based on the trading partner for which you are creating the transaction map, the New Transaction Map dialog box displays fields specific to customers or vendors. Enter the transaction type and DTD information in the fields for a customer or vendor transaction.
Click OK to add the transaction under the trading partner in the Trading Partner Tree.
If the transaction has a received document, continue with Mapping the Received XML. If the transaction does not have a received document, continue with Mapping the Reply/Sent XML.
If the transaction you are mapping contains a received document, map the received DTD elements from your trading partner to the Eclipse database elements available for the transaction type. If the transaction you are mapping does not contain a received transaction type, the Document Received From Customer/Vendor tab of the mapping utility is disabled.
Note: The tab name changes based on whether you are creating a customer or vendor transaction map.
To map the request XML:
If the transaction you want to map is not open, right-click the transaction in the Trading Partners Tree and select Edit Transaction Map.
Select the Document Received From Customer/Vendor tab to display the DTD for the source XML and the elements in Eclipse to which you can map the data.
Map elements from the Source XML column to elements in the Target XML column. For additional information about how to map and guidelines for creating valid mapping connections, see Mapping XML and Eclipse Data Elements.
If the transaction has an outgoing transaction type, continue with Mapping the Reply/Sent XML. If the transaction is a received-only transaction type, continue with Defining XML Mapping Selection Criteria.
If the transaction you are mapping contains a document you are sending to a customer or vendor, map Eclipse elements available for the transaction type to the elements in the response DTD from your trading partner. If the transaction you are mapping does not contain a reply/sent transaction type, the Document Sent to Customer/Vendor tab of the mapping utility is disabled.
Note: The tab name changes based on whether you are creating a customer or vendor transaction map.
To map the reply/sent XML:
If the transaction you want to map is not open, right-click the transaction in the Trading Partners Tree and select Edit Transaction Map.
Select the Document Sent To Customer/Vendor tab to display the DTD for the reply/sent XML and the data elements in Eclipse from which you map the outgoing data.
Map Eclipse database elements in the Source XML column to the data elements in the response DTD in the Target XML column. For additional information about how to map and guidelines for creating valid mapping connections, see Mapping XML and Eclipse Data Elements.
From the File menu, select Save Transaction Map to save the map.
See Also:
Defining XML Mapping Selection Criteria
Modifying Incoming and Outgoing XML Data
Previewing XML Transaction Maps