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
  • 1.  Getting Client IP via API-Gateway

    Posted 01/05/22 03:38 AM

    Hello, is there any way that from the API Gateway, we can transfer the sender’s Client IP (IPv4) to the Flow Services? What do we need to put in the Policies? Thanks.


    #webMethods
    #API-Gateway
    #API-Management


  • 2.  RE: Getting Client IP via API-Gateway

    Posted 01/05/22 03:49 AM

    There’s an option to propagate header attributes, I think it’s in the routing policy.
    regards,
    John.


    #API-Gateway
    #API-Management
    #webMethods


  • 3.  RE: Getting Client IP via API-Gateway

    Posted 01/05/22 03:53 AM

    @John_Carter4 Well, how do I do such ‘propagate header attributes’ in the routing policy? I’m kind of drawing blank in here after looking at the Routing form.


    #API-Gateway
    #API-Management
    #webMethods


  • 4.  RE: Getting Client IP via API-Gateway

    Posted 01/05/22 04:30 AM

    Ah, sorry it’s set via a global setting under Administration → General → Extended Settings

    watt.server.http.forwardHeaders

    On the IS side, follow my comment to your other question. Just realised that you are one and the same. I think the original IP address will communicated via an X- custom attribute. Use a save/restore pipeline to check after launching an API request.
    regards,
    John.


    #API-Gateway
    #API-Management
    #webMethods


  • 5.  RE: Getting Client IP via API-Gateway

    Posted 01/05/22 10:57 AM

    Hi Kristian, Apart from John’s suggestion above, Also you may need to utilize the pub.flow:getTransportInfo svc (check with restore pipeline during debugging) to view more of transport meta data on the header variables in the pipe.

    HTH,
    RMG


    #API-Management
    #API-Gateway
    #webMethods