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.  Mapping Record List into a Record

    Posted Mon April 18, 2005 04:31 PM

    Dear all,
    I have following RecordList-Structure

    record_XY
    header (1)
    segment1 (1-n)
    segment2 (1-n)
    segment3 (1)
    trailer (1)

    How can I map these data into a (normal) record???
    String or Bytes would also work.

    Thanks for your help,

    Dennis


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


  • 2.  RE: Mapping Record List into a Record

    Posted Mon April 18, 2005 04:41 PM

    If you are mapping recordlist data to record then you will loose the segment iterations,which you have shown above.If your target record is also a reclist then loop thru the segments and map the source fields to
    target fields.

    Can you elaborate more on your normal record structure?

    HTH,
    RMG


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


  • 3.  RE: Mapping Record List into a Record

    Posted Mon April 18, 2005 05:53 PM

    Sure:
    input (example)
    recMANLET
    …recMANLET[0]
    …Header
    …EOT
    …ECOR
    …ECOR[0]
    …ECOR[1]
    …ECOR[n]
    …COPR
    …COPR[0]
    …COPR[1]
    …COPR[n]
    …Trailer

    The next steps are (because its a change in an existing interface)
    recodToDocument
    stringToBytes
    addContentPart (save to TN)

    So, I have to go in somewhere between. As record,string or bytes.

    Actualy I use this record:

    recMANLET
    …Header
    …ECOR
    …COPR
    …EOT
    …Trailer

    What I thought of, is creating this record variable. Maybe
    recMANLET
    …Header_1
    …ECOR_1
    …COPR_1
    …COPR_2
    …EOT_1
    …EOT_2
    …Trailer_1

    ( _Number for every loop)

    For the service recordToDocument the segment seems to be not interesting.

    If you have any idea, please explain it in detail.
    Unfortunately I’m the only one programming in webMethods and I have to learn it all by trial and error.


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


  • 4.  RE: Mapping Record List into a Record

    Posted Tue April 19, 2005 03:08 PM

    Different Way.
    I seperate the segment appearing once from the segment appearing one time ore often.
    So I have one record and two record list. How do I get these record lists into records and then into ONE single record?
    I don’t think that recordListToRecord is the right service for this way.

    Please help,
    I’m running out of time.

    Regards,

    Dennis


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


  • 5.  RE: Mapping Record List into a Record

    Posted Thu April 21, 2005 03:58 AM

    " How do I get these record lists into records and then into ONE single record?"

    So in the target record you dont want all the iterations of the source recordlists?

    Sorry i too confused whats your exact requirement is and seeing the record structures i cant move further to help you.

    If not may be someone else will jump on this.

    Regards,


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