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.  RecordList to XML

    Posted 12/16/04 05:49 PM

    Hi,
    it’s me again.
    I have a recordList as an outbound from a CSV parser.
    Now I want to use “RecordListToRecord” and “RecordToXMLValues” to ceate a XML-File. (WMPub)
    Unfortunately, I can’t the the code, so I don’t know what I have to fille in the strings Name and Value.

    Can anyone help?
    Is this the correct way to create a XML-file?

    I used “convertDelimitedStringToRecordListWithColumnNames” (WMSamples) to parse my csv-file into a recordList.

    Thanks for your help,

    Dennis


    #webMethods-General
    #webMethods-Upgrade
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: RecordList to XML

    Posted 12/16/04 07:13 PM

    You can loop on the recordlist and inside you can use recordtodocument which will give u the xml for that record.


    #webMethods-General
    #webMethods-Upgrade
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: RecordList to XML

    Posted 12/17/04 04:52 PM

    Thanks Athul,
    but then I get just the last dataset.
    But I need all.

    How can I realize?

    Thanks,

    Dennis


    #webMethods-Upgrade
    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 4.  RE: RecordList to XML

    Posted 12/17/04 10:27 PM

    You can Create one StringList element and in loop get the xml and append it to stringlist.
    After loop you will have one stringlist with all xlms.


    #webMethods-General
    #webMethods
    #webMethods-Upgrade
    #Integration-Server-and-ESB


  • 5.  RE: RecordList to XML

    Posted 12/18/04 08:34 PM

    Dennis,

    What you do is create a temporary record(this should have all the fields which you have parsed a recordList,root element is recordList NAme) do a map step and map the recordList to a recordReference(above created temporary document)and in the recordToDocument service just map the record and (set recordName),it gives output xmldata.

    HTH,
    RMg.


    #webMethods-General
    #webMethods-Upgrade
    #webMethods
    #Integration-Server-and-ESB