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.  Response Transformation - XML

    Posted 08/07/09 02:29 PM

    Hi,

    My scenario is, when I make soap call to one of the backend services, I get response as below - for each element:    [COLOR=Blue]<item>[/color]
    

    address
    pramodkumar.ds@gmail.com

    Presently I need to transform it into format:
    pramodkumar.ds@gmail.com

    This is because the backend is been here for a long time and can’t be changed :frowning: One of the option I see is, to write a .xsl to make the transformation and use pub.xslt.Transformations:transformSerialXML service.

    Now my question is - is this the best way, or is there a better way for doing this in webMethods

    Cheers,
    Pramod


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


  • 2.  RE: Response Transformation - XML

    Posted 08/07/09 10:36 PM

    a simple flow service will do. check the IS dev guide for how to do mapping


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


  • 3.  RE: Response Transformation - XML

    Posted 08/10/09 06:38 AM

    But mapping from the response to how I need, would not solve my problem. :frowning: Because I have to do this in multiple services, and the is a document list. Hence I’m looking for a functional solution for this, and not specific to this single instance alone.

    btw, is there a way to retrieve value from the item document list, without looping and branching, but by using the key. (like as in the copy condition)


    address
    pramodkumar.ds@gmail.com

    Thanks for your response.

    Cheers,
    Pramod


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


  • 4.  RE: Response Transformation - XML

    Posted 08/10/09 10:57 PM

    What’s the objection to looping and branching?

    LOOP over ‘/item’
    …BRANCH on ‘/item/key’
    …address: MAP (value to target/address)
    …key2: MAP (value to target/key2)
    …someKey: MAP (value to target/anotherField)

    At some point, something needs to know the address and the data within the paired tag maps to . The “IS way” to do this is the loop and branch above. There are many other implementation possibilities but IMO this is the most straight-forward.


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


  • 5.  RE: Response Transformation - XML

    Posted 08/14/09 01:23 AM

    Use documentListToDocument service. It does exactly what you want.


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


  • 6.  RE: Response Transformation - XML

    Posted 08/14/09 06:33 PM

    I had looked at that service and for some reason thought it wouldn’t work in this case. But clearly that is the right service for this task.


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


  • 7.  RE: Response Transformation - XML

    Posted 09/04/09 09:31 AM