I'm trying to leverage the callout
mediator to call a REST endpoint.
But I need to send the contents of a received HTTP header.
I tried:
<callout passHeaders="false">
<endpoint>
<address uri="http://localhost:8888/test"></address>
</endpoint>
<source xpath="$trp:X-custom-header" />
</callout>
But this failed with:
ERROR - CalloutMediator The evaluation of the XPath expression : $trp:X-custom-header did not result in an OMElement
Is it even possible?