Subject:Using Generated Java-Code... Author:andre goldi Date:15 Aug 2011 08:46 AM Originally Posted: 15 Aug 2011 08:42 AM
Having generated Java from XQuery (Scenario) I now have the problem that I receive the EDI-File as a Stream and not as a File. So how can I
change the code using a Stream instead of a File/the URL of the File?
Subject:Using Generated Java-Code... Author:andre goldi Date:16 Aug 2011 03:44 AM
I will try. But maybe a little more detail to this:
The "inputUrl" contains the incoming EDI-File and the ".sef"-File generated by Stylus Studio so it looks like this:
Subject:Using Generated Java-Code... Author:Ivan Pedruzzi Date:16 Aug 2011 11:43 AM
The XML Converters API is very flexible, allowing to pass the SEF file as stream as well.
Here is the sample code revisited; again you can replace the FileInputStream with any InputStream implementation, doing so you are not forced to use the file system, for example you may have EDI data coming in as JMS messages and the SEF file stored in database.