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
Expand all | Collapse all

Sending back an xml string to the invoking application

  • 1.  Sending back an xml string to the invoking application

    Posted 11/09/12 05:24 PM

    Hi All,

    I have an application that’s invoking a flow service that I’ve setup on IS. Pretty straightforward. However, the application would like some data return in a synchronous manner. I’ve done this in the past but have forgotten how to do it. Is it as simply setting an output string in the flow service being invoked?


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


  • 2.  RE: Sending back an xml string to the invoking application

    Posted 11/09/12 05:44 PM

    You can use an output template. Or call setResponse. Be sure to set the content-type header. If you simply set an output parameter they well get an HTML table back, which may or may not be what they want.


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


  • 3.  RE: Sending back an xml string to the invoking application

    Posted 11/09/12 06:00 PM

    Thanks reamon. I don’t think they want the html table return. They want an xml return instead. Do you prefer setting output template vs. call the setResponse?


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


  • 4.  RE: Sending back an xml string to the invoking application

    Posted 11/09/12 10:07 PM

    Both should do the trick…but setResponse is the better option but you still have to set template fashion variables style %value xmlResponse% if you want the service response synchronous at the end:


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


  • 5.  RE: Sending back an xml string to the invoking application

    Posted 11/12/12 02:21 PM

    Not sure how this would work. The invoking application will execute an IS flow service. The IS flow service basically a wrapper to TN. When it gets to TN, it’ll invoke another flow service for processing into the target system. The target system generates a confirmation number which I would like to capture and return it back to the invoking application. Is this still possible?


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


  • 6.  RE: Sending back an xml string to the invoking application

    Posted 11/12/12 03:04 PM

    Is the processing rule set to synchronous or asynchronous?


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


  • 7.  RE: Sending back an xml string to the invoking application

    Posted 11/12/12 04:05 PM

    The processing rule is set to synchronous.


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


  • 8.  RE: Sending back an xml string to the invoking application

    Posted 11/12/12 05:36 PM

    Did you tested the change with setResponse or template method in the processing service output?


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


  • 9.  RE: Sending back an xml string to the invoking application

    Posted 11/12/12 07:01 PM

    I usually use setResponse. I think I’ve used a template like once in the many years I’ve been working with IS.


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


  • 10.  RE: Sending back an xml string to the invoking application

    Posted 11/12/12 07:02 PM

    “but you still have to set template fashion variables style %value xmlResponse% if you want the service response synchronous”

    Can you elaborate? When using setResponse I’ve never needed to touch the output template stuff.


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


  • 11.  RE: Sending back an xml string to the invoking application

    Posted 11/12/12 07:04 PM

    Yes if the rule is synchronous. At design time you won’t see the returned vars. But you can do BRANCH to confirm that the var is there and populated.


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


  • 12.  RE: Sending back an xml string to the invoking application

    Posted 11/12/12 07:21 PM

    Not with the setResponse no need to touch and the service’s output template I mean (which the actual request comes in) xmlResponse output - %value xmlResponse% I mean:


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