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.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Sending XML Response back

  • 1.  Sending XML Response back

    Posted Fri November 05, 2010 11:25 PM

    All,

    I have a requirement where the TP posts the xmldata to my service. They will directly call my service which accepts the xml string as input and extracts the content and routes it to the Trading Networks (Routing Instance) which sends the payload to another instance.

    Now, What should I do is that I need to send an XML response back on its status. I have the XML response structure. How can I achieve this. Please let me know your valuable suggestions.

    Thanks all in advance.
    David.


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


  • 2.  RE: Sending XML Response back

    Posted Sun November 07, 2010 07:31 PM


  • 3.  RE: Sending XML Response back

    Posted Mon November 08, 2010 11:35 AM

    Hello,
    Can you expand more a bit…as I understood in a different way,
    like you receive XML from TP, process it, route again to TN, then again call a service…am I right?

    Yes or No, do say…

    Regards
    Suvigya


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


  • 4.  RE: Sending XML Response back

    Posted Mon November 08, 2010 06:39 PM

    Hi Suvigya,

    I receive an XML from Trading Partner. then I need to extract the payload and route it to TN so that the processing rule service will send it to another instance.

    The above part is all good. But when the trading partner calls the service directly they need an acknowledgement or response back. Like failure or success. It has to be synchronous. Immediate response when they send the data to the service.

    Thanks,
    David.


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


  • 5.  RE: Sending XML Response back

    Posted Mon November 08, 2010 06:51 PM

    Review the docs for pub.flow:setResponse. Post any questions you might have.


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


  • 6.  RE: Sending XML Response back

    Posted Tue November 09, 2010 05:29 PM

    Hello,
    But Rob, he can also use the “Respond With” feature, in the actions tab of processing rule, as everything will pass from TN only…
    If I am right??


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


  • 7.  RE: Sending XML Response back

    Posted Tue November 09, 2010 08:23 PM

    That would work if the caller was invoking wm.tn:receive directly. (Which I generally recommend against doing.)


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


  • 8.  RE: Sending XML Response back

    Posted Wed November 10, 2010 05:59 AM

    Sorry for stealing the thread…

    Hi Rob,

    I would like to hear more of your thoughts on the above comment and what is the alternative you would suggest?

    If you have already written elsewhere could you please direct me to the thread.

    Thanks,
    Suren


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


  • 9.  RE: Sending XML Response back

    Posted Fri November 12, 2010 07:14 PM

    I would like to use service templates and send the pipeline data.
    I have created a output template and structured it to get the pipeline data for some values. How can I test to see what actually is getting carried into the response. I mean to say. How can I see the output response.

    Let me know.


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


  • 10.  RE: Sending XML Response back