Wednesday, February 11, 2015

How to get the url params in custom sequences in wso2 API Manager - 1.7.0

Here is the solution:

 

Example requesst :

GET http://localhost:8280/foo?a=1&b=2

 

and to log values of a and b

 

<sequence xmlns="http://ws.apache.org/ns/synapse" name="URL--PARAMS --In">

            <property name="VAL_a" expression="$url:a"/>

            <property name="VAL_b" expression="$url:b"/>

</sequence>

 

No comments:

Post a Comment