Posted: Mon Apr 06, 2015 4:20 am Post subject: Setting HTTP Method Dynamically - WMB 8.0.0.2
Centurion
Joined: 13 May 2014 Posts: 121
Hi,
I have several HTTP Calls to make for a few interfaces.
The HTTP Method depends on a few fields I am getting in the request. I wanted to know if there is any way to dynamically set the method in ESQL?
I am setting the request URL using the header like -
Code:
SET OutputLocalEnvironment.Destination.HTTP.RequestURL = API||InputLocalEnvironment.Destination.HTTP.RequestURL;
However, I am not able to set the method here (POST, PUT, GET etc.).
Can somebody let me know a simpler way to do this instead of having new message flow for every kind of method. This is cumbersome because there is actually no other difference oter than the method. I could use the same subflow for all operations if I can set the method in ESQL somehow.
SET OutputLocalEnvironment.Destination.HTTP.RequestLine.Method = 'GET';
Kind regards, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum