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.  Transforming results from execSQL

    Posted Thu January 30, 2003 04:49 PM

    Hi all - How do I transform the “results” record list that a pub.db:execSQL returns to a different format? Let’s say the SQL I run is “select * from employee” and it returns records with the person’s first, middle, and last name as such:

    Jonathan Douglas Smith
    William Thomas Jones
    Howard Michael Gordon

    The format I’d like to convert this to is records with all first names, all middle names, and all last names as such:

    Jonathan William Howard
    Douglas Thomas Michael
    Smith Jones Gordon

    Needless to say, the SQL example I gave is an overly simplified query. If this was always the case, I’d use the the pub.db:query and pub.table:recordListToTable built-in services. I just wanted to see if there is a more elegant solution that I was missing.

    Cheers!
    Rajesh


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


  • 2.  RE: Transforming results from execSQL

    Posted Fri January 31, 2003 01:58 PM

    I use the XSLT module and an XSL stylesheet to transform from one structure to another.

    It’s fast even when there are thousands of records.


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


  • 3.  RE: Transforming results from execSQL

    Posted Fri January 31, 2003 07:25 PM

    Another option would be to use queryDocument.

    I find XQL to be very readable, and it greatly simplifies complex looping and branching logic.

    I’m sure there are tradeoffs between using XSLT vs queryDocument.

    If anyone has some opinons - I would be interested to know what you think.

    Is one clearly faster than another in certain circumstances?

    HAL


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


  • 4.  RE: Transforming results from execSQL

    Posted Fri January 31, 2003 09:13 PM

    Regarding Tony’s XSLT remarks…

    The XSLT Module is not available as part of the standard webMethods installation. You will need to visit the Advantage Web site’s Software Download Center to get it.

    If the XSLT module is not included in the Available Software list, contact the Keymaster at keymaster@webmethods.com. The Keymaster can “release” the module to you.


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