Or use pub.file:getFile, with loadAs set to stream.
However, this only handles the first (and easiest) part of Nisha’s post: how to read the file as a stream.
The second part is the tough part: how to send EDI documents to TN via routeXML without using convertToValues. Since routeXML accepts a node (which must be an XML document) as its input and an EDI document is definitely not an XML document, you’ll have to write your own code to convert from EDI to something that routeXML can understand.
Why not just use convertToValue? It works, its modular (accepts multiple EDI document types), and its already built for you.
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods