webMethods step by step EDI To XML File
TASK: EDI To XML
OS: WindowsOS
Platform: webMethods 6.1
This task takes EDI data and converts it into XML data.
To achieve this, the following Flow Steps are usedâ¦
1. pub.file:getFile
2. wm.b2b.edi:convertToValues
3. pub.xml:documentToXMLString
4. sample.IO.test:writeToFile
1. pub.file:getFile:
This flow step reads the data according to the specified path and converts into bytes.
Set the Filename path and overwriteflag
Mapping for this flow step.
2. wm.b2b.edi:convertToValues:
ConvertToValues service is used to convert the bytes into EDIValues using the EDI schema. (For creating EDI Schema refer How to Create EDI Schema?)
Mapping for this flow step.
3. pub.xml:documentToXMLString:
documentToXMLString service is used to convert the EDIValues into XML data.
Mapping for this flow step.
4. sample.IO.test: writeToFile:
This flow takes the XMLData and writes into the XML file according to specified path.
Mapping for this flow step
à OverwriteFlag must be specified to overwrite/Append
