Receiving GET and sending POST method to backend in proxy

Hi,

We are receiving the GET method in the proxy and while calling BE we need to use POST method. For this we are able do the process. But once the response comes from BE it's coming as POST but it's not matching with any of flow conditions(in this case GET) so it's not executing the response flow. Could please suggest is there a workaround for this.

Thanks

Tiru

1 3 246
3 REPLIES 3

Can you add few more details like the Trace session, flow conditions?

When a request is made, it is going to check the conditions and execute a particular flow.

In this flow you can change the method to POST using Assing Message Policy, and then hit the backend.

When response is returned from backend I guess it goes through the same flow response flow.

@siddharth When we are hitting the bakcend it works fine. Once I receive the response from backend it's not able to find which flow to exexute since the method got changed to POST but initial method is GET.

Maybe we need to create a flow on targetEndpoint with a condition request.verb = "POST" and the same path as used in proxyEndpoint flow, and then add the required business logic there.