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

Getting Request Custom Header value into Designer/Integration Server

  • 1.  Getting Request Custom Header value into Designer/Integration Server

    Posted Thu January 06, 2022 04:45 AM

    Hello. I’d like to ask about a HTTP Request’s Custom Header Key/Value and how to read it in the Integration Server. Here’s the scenario:

    I sent a HTTP Request to an API Gateway link that will be read to the Integration Server/Designer, and also added a custom header in the Request. Let’s say the custom header’s key is ‘customHeader’, while the value is ‘123ABC’ (and let’s say I’m using Postman. I just click Headers (next to Body) and add a new Key and Value named as such). I want this to be able to be read those Key/Value at the Designer.

    Usually to get some headers, I’d use pub.flow:getTransportInfo. However, the result (in transport/http/requestHdrs) does not give out such custom header key/value. So what do I invoke or do in order to be able to read such custom header key/value in the designer?

    Thanks!


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


  • 2.  RE: Getting Request Custom Header value into Designer/Integration Server

    Posted Mon January 10, 2022 04:46 AM

    Hi Wijaya,

    Have you tried this in Designer? If you know the key for the custom header then you can retrieve the custom header value using the pipeline. Just see the attached screenshot, where I am trying to extract the custom header field value from the transport info. Give it a try.

    Thanks,
    Sree


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


  • 3.  RE: Getting Request Custom Header value into Designer/Integration Server

    Posted Mon January 10, 2022 05:16 AM

    Hello @Sreekanth_Siddapur_Channakeshava

    I’m afraid that after trying your method, it fails. To re-iterate, I want to put a custom header in a Postman like this

    So I want the customKey put on Headers to be accessible in the flow service at the designer. How do I that? Or it’s impossible at the moment?


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


  • 4.  RE: Getting Request Custom Header value into Designer/Integration Server

    Posted Mon January 10, 2022 05:38 AM

    Have you tried to make a call to pub.flow:tracePipeline following the getTransportInfo ?
    it should then list all the headers received by the service from the API Gateway.

    Also have you checked that the API Gateway is configured to forward all http headers ?
    Check the extended setting watt.server.http.forwardHeaders on your API Gateway and make sure it is set to true
    regards,
    John.


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


  • 5.  RE: Getting Request Custom Header value into Designer/Integration Server

    Posted Mon January 10, 2022 08:59 PM

    Tried to do so. Didn’t display the result.

    Tried this one too. Failed. Do I need to restart the API Gateway first?


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