How to send http request using pub.client.http

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}

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

Hi @Vikash_Sharma1,

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

1 Like