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

how to pass mediator predefined context variable in native service http header

  • 1.  how to pass mediator predefined context variable in native service http header

    Posted Thu February 25, 2016 02:07 PM

    I am trying to pass mediator predefined context variable INBOUND_IP in native service http header but no luck, anyone experienced this issue?


    #API-Management
    #webMethods
    #CentraSite


  • 2.  RE: how to pass mediator predefined context variable in native service http header

    Posted Wed April 26, 2017 07:23 AM

    I’m interested in passing a custom http header to native services containining the consumer application.
    Has someone found the way to achieve this?


    #CentraSite
    #API-Management
    #webMethods


  • 3.  RE: how to pass mediator predefined context variable in native service http header

    Posted Wed April 26, 2017 12:00 PM

    You want to go through Mediator?


    #API-Management
    #CentraSite
    #webMethods


  • 4.  RE: how to pass mediator predefined context variable in native service http header

    Posted Wed April 26, 2017 12:03 PM

    yes, we call the native services through Wm Mediator


    #API-Management
    #CentraSite
    #webMethods


  • 5.  RE: how to pass mediator predefined context variable in native service http header

    Posted Wed April 26, 2017 12:14 PM

    you have to create the flow service(for example: x) and need to call two services inside that

    In the first step use the pub.mediator.ctxvar:getContextVariable service to get the INBOUND_IP. In the second step use the pub.mediator.ctxvar:setContextVariable to set an HTTP Header variable. For example, use a varName of PROTOCOL_HEADERS[MyClientIP] to create and set an HTTP Header called MyClientIP

    Set the flow service(x) as an “Invoke webMethods Integration Server” in the Receive for the Message Flow for the virtual service in Centrasite. When the virtual service is called, the flow service will be run and an HTTP Header will be created and sent to the Native service. It will be upto the native service to know to look for this variable in the HTTP Header.


    #API-Management
    #webMethods
    #CentraSite


  • 6.  RE: how to pass mediator predefined context variable in native service http header

    Posted Thu April 27, 2017 01:11 PM