Monday, May 8, 2017

How to read HTTP headers in WSO2 ESB?

You can read the HTTP headers as below.

For this example, I assumed that proxy received the request with the firstName as a HTTP header. In the ESB we can get the value as below
<property name="firstNameValue" expression="$trp:firstName"/>

Here firstName header value will assign to the firstNamevalue property.

3 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Unable to post my code for some reason, that's why had to delete my comments

    ReplyDelete