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.  argumentList in pub::string::messageFormat

    Posted Sun March 16, 2003 10:30 PM

    Hello. I’ve used WmPublic.pub.string.messageFormat to include a record with multiple strings in Side A to become a single string value on Side B. For the argumentList, we’re supposed to input the string which we want to include in as %RecordName/String1%. My question is, if I have a ‘record list’ within a record, how do i include it in the argument list? I tried entering %RecordName/RecordListName/String2% but after running the service, the value of the variable was not shown. Instead the result just showed it as %RecordName/RecordListName/String2%. Is there another way I should have phrased it to include it in the ‘argumentList’ ?


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


  • 2.  RE: argumentList in pub::string::messageFormat

    Posted Mon March 17, 2003 09:14 AM

    The problem is the dimension mismatch. Is there a specific entry in the RecordList that you want in the message?

    1. For instance if you are looping over that record list you could map the non-list version of the item.

    2. Otherwise, the variable substitution code supports numeric indexes:

      %RecordName/RecordListName[0]/String2%


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


  • 3.  RE: argumentList in pub::string::messageFormat

    Posted Mon March 17, 2003 08:47 PM

    Ok. tried ur suggestion. but didnt work. here’s a more detailed explanation of the current scenario i’m facing.

    on Side A :
    RecordName
    String1
    String2
    String3
    RecordListName :{
    String4
    String5
    }
    String6

    On Side B :
    (Just want a long string like this:-)
    String1String2String3String4String5String6

    In Argument List, i put it as
    %RecordName/String1%
    %RecordName/String2%
    %RecordName/String3%
    %RecordName/RecordListName/String4%
    %RecordName/RecordListName/String5%
    %RecordName/String6%

    Did i leave anything missing here? Pls advice.


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


  • 4.  RE: argumentList in pub::string::messageFormat

    Posted Tue March 18, 2003 09:29 AM

    I don’t see where you addressed the fact that RecordListName is an array and you need to select the index of the element you want. The following works for me in an instance the I hardcode two entries in the record list:

    %RecordName/String1%
    %RecordName/String2%
    %RecordName/String3%
    %RecordName/RecordListName[0]/String4%
    %RecordName/RecordListName[0]/String5%
    %RecordName/RecordListName[1]/String4%
    %RecordName/RecordListName[1]/String5%
    %RecordName/String6%

    If you want to handle any length record list, you have to loop.


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