- Configuration and Testing
- Functional Demonstration
The XML2EDI component is used for transforming information from XML format to EDI format. This component accepts data in XML format and transforms it to the required EDI format. It uses Eagle library to do the transformation.
Configuration and Testing
Managed Connection Factory
The XML2EDI component can be configured using its Custom Property Sheet (CPS) wizard.
Figure 1: Managed Connection Factory panel
EDI Document Type
Specify the EDI type of the document to be converted; choose from the options - Custom and UN/EDIFACT.
Click the Format Schema ellipses button and provide the EDI format schema to be used in the editor.
United Nations/Electronic Data Interchange for Administration, Commerce and Transport is the international standard that was developed by the United Nations.
Figure 2: Managed Connection Factory panel with the EDI Document Type "UN/EDIFACT"
UN/EDIFACT Document Version
Specify the UN/EDIFACT document version.
UN/EDIFACT Document Type
Specify the UN/EDIFACT document type. Refer to the possible document types at https://www.edibasics.com/edi-resources/document-standards/edifact/.
Connection Pool Params
Please refer to the respective section in the Common Configurations page.
Configuration can be tested in the Configuration Property Sheet (CPS) by clicking the Test button in the CPS panel.
Figure 2: Interaction Configurations panel
For descriptions of Expert properties given below and Monitoring Configuration, please refer the Interaction Configurations section in Common Configurations page:
- Pre Processing XSL Configuration
- Post Processing XSL Configuration
- Process Message Based On a Property
- Validate Input
- Cleanup Resources (excluding connection) after each input document
Functionality can be tested from within the Configuration Property Sheet (CPS) by clicking the Test button in the Interaction Configurations panel.
Sample EDI format schema to be provided in Format Schema editor in the Managed Connection Factory panel:
Figure 3: Sample Schema
Click the Test button in the Interaction Configurations panel. A sample XML appears in the Input Message which can be edited.
Figure 4: Sample XML2EDI Input Message
Click Execute to find the output as below.
Figure 5: XML2EDI output message
To schedule the component to execute a specific request at configured intervals of time.
To define the actions that have to be taken when an error occurs.
Figure 6: Demonstrating Scenario 1 with sample input and output
Provide the following XML in the Feeder window and click Send.
Figure 7: Sample input XML provided in the Feeder window
Output "ABC~" appears the Display window as below.
Figure 6: Output appearing in the Display window