webMethods

webMethods

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.  multiple DocumentList to XML

    Posted Mon June 13, 2016 04:18 PM

    Hi Experts,

    Can anyone suggest me in writing a java code to convert multiple document lists to a XML conversion.

    Thanks,
    AK.


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: multiple DocumentList to XML

    Posted Tue June 14, 2016 07:01 AM

    Hi,

    You can do that simply with Flow. Do you have a specific requirement where you have to use Java?

    Also, you want to convert several document lists to one xml or have an xml for each document list?

    Best Regards,


    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: multiple DocumentList to XML

    Posted Tue June 14, 2016 12:29 PM

    Anil,

    Explore the services present in WmPublic/pub.xml folder, it must suffice your need and requirement.


    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: multiple DocumentList to XML

    Posted Tue June 14, 2016 06:28 PM

    Hi Lisboa,

    I have a requirement to convert a doc with multiple doc lists which has >2 lakhs records overall to a single xml file. I knew about the documenttoXMLstring service but in my case as the input data is huge, my better idea is to create a java service where input is multiple doclists.

    Thanks,
    Anil.


    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: multiple DocumentList to XML

    Posted Wed June 15, 2016 10:23 AM

    Hi,

    If you want to convert a Document (whatever its contents) to an XML file, you can play with the services pub.xml:documentToXMLString and pub.file:stringToFile (or the equivalent stream or reader services), taking care with the BufferSize parameters.

    If you want more control over the whole conversion, you can descent in to the corresponding Java services, but beware that navigating the IData structures is a daunting task…

    Good luck.


    #webMethods
    #Integration-Server-and-ESB