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

Request processing and Response processing using an IS service

  • 1.  Request processing and Response processing using an IS service

    Posted 11/17/15 10:17 AM

    Hi Guys,

    I’m trying to use an IS service to modify the request data from “Request Processing” step in the definition of a Virtual Service in Centrasite/Mediator. In the documentation It sais that the Mediator will inject a MessageContext obect in the pipeline in the IS service define in the “Request Processing” step.

    The MessageContext is there but I can’t find the way to change the data from the calling consumer.

    I’ve tried this so far:
    1: call pub.soap.handler:getSOAPMessage function that returns a SOAPMEssage
    2: Send the SOAPMessage Object into xmlNodeToDocument (failed)

    I’ve tried other calls with no avail.

    Anyone did it ?

    Serge


    #webMethods
    #CentraSite
    #API-Management


  • 2.  RE: Request processing and Response processing using an IS service

    Posted 01/15/16 10:00 AM

    this my step to modify Request Message

    • INVOKE pub.soap.handler:getBodyBlock → get current message
    • INVOKE pub.soap.handler:removeBodyBlock → remove message
    • Map → change message you got from getBodyBlock
    • INVOKE pub.soap.handler:addBodyBlock → add message that modified

    #webMethods
    #API-Management
    #CentraSite