Monday, May 8, 2017

How to read query parameter from the WSO2 ESB?

You can read the HTTP query parameter as below.

For this example, I assumed that proxy received the request with the firstName value and lastName value as query parameter.
http://tharanga:8280/services/Proxy4?firstName=tharanga&lastName=wijeweera

Now you can read the query parameter as below
  <property name="param_a" expression="$url:firstName"/>
  <property name="param_b" expression="$url:lastName"/>

Here, firstName and lastName values will assign to the properties.

No comments:

Post a Comment