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
Expand all | Collapse all

RecordToDocument repeats parent for each detail

  • 1.  RecordToDocument repeats parent for each detail

    Posted Thu July 24, 2003 11:31 PM

    I am using a LOOP step to convert a recordList into another format of recordList.
    The structure displays properly in B2B Integrator, however, when I do a recordToDocument,
    I get repeated parent nodes that represent the recordList. To build the itemList recordList I do following:

    LOOP (on /items input:/items output:/lineItems)
    map (Resulting record looks great in B2B Integrator)

    But when I use recordToDocument to convert to xmltext…
    I’m getting:
    …<detail>
    …<lineItems>
    …<lineItem>Item #1</lineItem>
    …</lineItems>
    …<lineItems>
    …<lineItem>Item #2</lineItem
    …</lineItems>
    …</detail>

    What I want is:
    …<detail>
    …<lineItems>
    …<lineItem>Item #1</lineItem>
    …<lineItem>Item #2</lineItem>
    …</lineItems>
    …</detail>
    (dots added to preserve formatting)

    Perhaps that’s just the way recordToDocument works ?
    Apparently, recordToDocument does not know how to iterate through recordLists in the child nodes of the record to produce proper output ?

    Regards,
    Nick


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


  • 2.  RE: RecordToDocument repeats parent for each detail

    Posted Sun July 27, 2003 12:37 AM

    Figured it out. Should not have had the <lineitems> element in the loop.


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