webMethods

webMethods

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 send http request using pub.client.http

  • 1.  How to send http request using pub.client.http

    Posted Fri December 23, 2022 08:29 AM

    Hi Everyone,

    i am working on Web Methods API Gateway and i need to send my request to native endpoint using flow service, but i need exact request payload and headers and everything to pass to pub.client.http in flow service.

    My issue is i want to use a constant for base URL for API in routing policy is there any other way to do it like ${someDefinedConstant}/${sys:resourcepath}


    #Integration-Server-and-ESB
    #API-Management
    #Service-Designer
    #webMethods
    #API-Gateway


  • 2.  RE: How to send http request using pub.client.http

    Posted Mon January 09, 2023 05:39 AM

    Hi @muhammad.usman22 ,
    If I understood correctly you want to use the constant in your native URL.
    To achieve same you can use aliases.

    How to use the alias you can refer below tech article:

    Let me know if this solves your problem

    Regards
    Vikash Sharma


    #API-Management
    #Integration-Server-and-ESB
    #Service-Designer
    #API-Gateway
    #webMethods


  • 3.  RE: How to send http request using pub.client.http

    Posted Mon January 09, 2023 06:34 AM

    Hi @Vikash_Sharma1,

    Thank you for your response. Yes this is what is needed exactly and it solved my problem


    #API-Management
    #API-Gateway
    #webMethods
    #Service-Designer
    #Integration-Server-and-ESB