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.  Convert StringTable to Hashtable

    Posted 01/12/05 11:41 PM

    Hi All,

    I have a string table in the Pipeline which I am passing as input to a Java Service. I need this StringTable to be converted to a Hashtable so I can do a key/Value look up…
    In short , is there any Java code to convert StringTable to java Hashtable.

    thanks
    pawan


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


  • 2.  RE: Convert StringTable to Hashtable

    Posted 01/13/05 06:44 PM

    Will pub.string:lookupTable work? It accepts a string table and other parms to do a lookup.


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


  • 3.  RE: Convert StringTable to Hashtable

    Posted 01/14/05 01:42 AM

    Hi Rob,

    I tried calling the pub.string:lookupTable from inside my java service.(I generated code for pub.string:lookupTable to call from another service). However , When i pass the StringTable in pipeline as input, I get a classcast exception…

    thanks
    pawan


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


  • 4.  RE: Convert StringTable to Hashtable

    Posted 01/14/05 03:29 AM

    Would need to see your code to help. Can you post it?


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


  • 5.  RE: Convert StringTable to Hashtable

    Posted 01/14/05 06:54 AM

    Pawan,

    I think Rob gave a very good answer. Since you have a table, might as well do the lookup outside of the Java service. Just pass the looked up result to your Java service.

    On an aside, I find that the more proficient webMethods Developer, the less Java code they write… 8) Seriously, most of the things you can thing of doing programmatically, it’s easily doable w/Flow.


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