I’m designing a gateway service to extract information from a file and then route it to Trading Networks. If I read in the file as a stream using pub.file:getFile and extract the information I need, I have to call the getFile service again to get a stream I can map to wm.tn.doc.ff:routeFlatFile. If I just map the object that’s already in the pipeline I get a ‘no valid records found’ exception.
This must be because of the nature of the stream object, which I’m not too familiar with. Is there a better or more efficient way of doing this? Thanks.