As you create your transaction maps, the system creates the XQuery code that it uses to translate XML data. You can view the translation code using the Show XQuery functionality. Viewing the code is useful for troubleshooting your transaction maps. If necessary, you can copy and paste the compiled code to send it to Eclipse Technical Support.
To preview the XML translation for a transaction map:
Right-click a transaction in the Trading Partner Tree and select Edit Transaction Map to display the transaction map.
From the Options menu, select Show XQuery to display the XQuery Viewer dialog box.
Click the tab for the preview information you want to view:
Tab |
Description |
Request XQuery |
The XQuery code for the received document map. |
Response XQuery |
The XQuery code for the sent document map. |
Requested Data TxXML |
The translation XML. |
Request XML Document |
The XML generated for the received document map. |
Response XML Document |
The XML generated for the sent document map. |
If you had data element selected in the transaction, the system tries to find the XQuery line that corresponds to the selected element. If it finds one, the system highlights the text in the XQuery translation. If it does not find a corresponding line, the system displays the first line in the translation for the transaction.
Note: The XQuery Viewer dialog box defaults to the XQuery tab related to the tab selected on the main Business Connect XML window. If the Mapping Selection Criteria tab is selected on the main window, the Request XQuery tab displays in the XQuery Viewer dialog box.
Click Close to return to the main window.
To search the XQuery Code, TxXML translation, or the XML documents:
Select the tab for the information you want to view.
Click Search and enter the text for which you want to search.
Click OK to search for the first occurrence of the text.
Click Search Next to find the next occurrence of the text.
See Also: