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.

 View Only
  • 1.  Split Xml

    Posted Wed September 24, 2008 07:08 AM

    Hi All ,i need to process the xml file by making it split .can anyone of u suggest the process to split .Thankskumar


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


  • 2.  RE: Split Xml

    Posted Wed September 24, 2008 07:55 AM

    What do you mean by “split”? Do you want to break the file into smaller files for easier transport? Or do you mean, splitting the contents of the file into different elements?

    Please clarify what your requirements are so we can assist you

    Regards,

    Aditya


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


  • 3.  RE: Split Xml

    Posted Wed September 24, 2008 07:58 AM

    i want to break the file into smaller files for easier transport


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


  • 4.  RE: Split Xml

    Posted Wed September 24, 2008 08:26 AM

    If that’s the case, you’ll probably need to do something like this:

    1. pub.file:getFile (as stream)
    2. REPEAT (on success)
      2.1 read the stream into smaller byteArray (define a chunk size e.g. 512000 bytes)
      2.2. if(chunk number < totalChunkNumber) then continue processing
      else file has been completely split and exit repeat.

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