Contents

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.

Icon

The component takes EFL file as input in the CPS which describes the conversion rules. EFL files can be created or modified using the Fiorano Studio tool.

Configuration and Testing

The XML2EDI component can be configured using its Custom Proper Sheet wizard. Following is the Interaction Properties panel.


Figure 1: Managed Connection Factory panel

Attributes

Format Schema

Click the ellipses button and provide the EDI format schema to be used in the editor.

Connection Pool Params

Please refer the respective section in the Common Configurations page.

Configuration can be tested from within the Configuration Property Sheet (CPS) by clicking the Test button in the CPS panel.

Interaction Configurations


Figure 2: Interaction Configurations panel

 

Attributes

For the four attributes given below (first three are Expert Properties), please refer Interaction Configurations section in Common Configurations page for description.

  • Validate Input
  • Cleanup Resources (excluding connection) after each input document
  • TargetNamespace
  • Monitoring Configuration

Testing

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:

Sample Schema

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Message
PUBLIC "-//mendelson.de//DTD for m-e-c eagle//EN" "http://www.fiorano.com/dtds/m-e-c.dtd">
<Message standard="EDIFACT" version="93" release="A" enableMissValue="0" name="Empty" minRepeat="0" maxRepeat="1" hideElement="0">
<Segment id="ABC" delimiter="~" name="segment" description="" minRepeat="0" maxRepeat="1" hideElement="0">
<DataElement type="AN" default="ABC" minLength="3" maxLength="3" name="ABC" description="" minRepeat="0" maxRepeat="1" hideElement="0"/>
</Segment>
</Message>

Figure 3: Sample Schema

Click Test button in the Interaction Configurations panel.

Sample Input

The XML appears in the Input Message.


Figure 4: Sample XML2EDI Input Message

Output

Click Execute to find the output "ABC~" as below.


Figure 5: XML2EDI output message

Functional Demonstration


Figure 6: Demonstrating Scenario 1 with sample input and output

Sample Input

Provide the following XML in the Feeder window and click Send.

Figure 7: Sample input XML provided in the Feeder window

Output

Output "ABC~" appears the Display window as below.


Figure 6: Output appearing in the Display window

Adaptavist ThemeBuilder EngineAtlassian Confluence