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

    Posted 02/20/03 02:31 AM

    I am reading an XML file into a document into a record – it all works fine as long as there are two or more children per branch. However, if there is only a single instance of an XML tag (resulting in a single record branch) instead of a RECORDLIST i get a RECORD – this causes all sorts of problems since i cannot loop over it. What should I do? Can I forge all XML to record conversions to be a loop?


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


  • 2.  RE: XML to recordrecordlist

    Posted 02/20/03 04:10 AM

    In the documentToRecord call, are you specifying a recordName parameter?


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


  • 3.  RE: XML to recordrecordlist

    Posted 02/20/03 05:21 AM

    try including the name of the node you have to get as a record list in the arrays field. This willwork.
    There are other ways too.
    Thanks


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


  • 4.  RE: XML to recordrecordlist

    Posted 02/20/03 03:24 PM

    You have two options - supply a recordName as Rob suggested (assuming your record reference indicates that the element in question is a recordList), or set the arrays parameter to tell webMethods which nodes are supposed to be recordLists.

    Will Kriski


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


  • 5.  RE: XML to recordrecordlist

    Posted 02/20/03 06:19 PM

    Thanks everyone for your help! This worked very well


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