I need to use some information from request such as "query params" or "headers" in response mediator. for example use url query parameter in response flow. I tried to use <"inSequence"> and <"outSequence"> but I could'nt get any result.
For example I want to use this "log mediator" in response flow. "firstname" is query param in request:
<log level="custom">
<property name="firstname" expression="$url:firstname"/>
</log>
If you want to access the query parameters being sent in the original request from the
out-sequence, simply set it to a property in thein-sequence. Then that property will be accessible in theout-sequence. See the example below.In Sequence
Out Sequence