IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Writing XML Node To File

    Posted 02/11/06 12:04 AM

    Hi all,

    I’m creating a flow service which takes in an xml node as input and need to write its contents to a file. Currently, the node is being converted to a string, and then written to a file, but due to the size of the files, this is probably not the best solution.

    Is there a better way to do this?

    Thanks in advance!
    Jason


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 2.  RE: Writing XML Node To File

    Posted 02/11/06 01:31 AM

    Review the large file handling approaches for information on using a nodeIterator to iterate over a large XML document. You could use that approach to read a preset number of elements or bytes and use java IOStreams to write to your output file. This may be a bit (ok, maybe a lot) slower, but will have a much smaller memory footprint.

    How large are your XML files?

    Mark


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 3.  RE: Writing XML Node To File

    Posted 02/13/06 03:29 PM

    Thanks for your response Mark. The files we’re expecting to use are about 40MB or so in size.


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB