The data will be read one line at a time by the SAX parser. The Smooks configuration file uses a number of other technologies to make it work.įirst of all, we see a number of xsd’s included like javabean, file-routing and freemarker. You can also refer to a file for the config-key. The Smooks configuration should be saved in the Registry as a local entry before it can be used here. The config-key is used to access the Smooks configuration. It can be used to perform a wide range of Data Transforms – XML to XML, CSV to XML, EDI to XML, XML to EDI, XML to CSV etc. The Smooks mediator allows you to do that within the Enterprise Integrator. Smooks is an extensible framework for building applications for processing XML and non XML data (CSV, EDI etc). Of course, you need to change the parameters in the proxy and local entry in order to match your setup.
The graphical overview is extremely simple, especially since parameters are not visible in the graphical mode but are in the source mode. Configuration of the VFSĪs you can read in other blogs on VFS we need to configure the input directory on which we listen to a new file: Keep in mind that these two are not next to each other in the axis2 file:įurthermore, we will use the PlainTextBuilder, a message builder that is available in axis2 file.Īll changes to axis2 require a restart of the WSO2 EI since these parameters are only loaded at startup. Uncomment both in the /conf/axis2/axi2.xml. The VFS transport comes in two flavors, the sender and receiver. We will use the VFS transport to process an EDI file (a simple plaintext file). As a second step, we store the data in a database as well. In this blog, we will take a dummy EDI message file and turn it into an XML file.
How do you turn these messages into more modern formats? With WSO2 EI of course. Electronic Data Interchange (EDI) has been around for many decades and has been replaced to a large extend by other ways of data interchange like XML (computer readable) and newer formats like JSON. Still there are EDI messages in use, perhaps in your organization.