Hi Marcin
I use POX format for sending request by Apache Synapse to external REST
service
...
<send>
<endpoint>
<address uri="http://any.address/" format="pox"/>
</endpoint>
</send>
...
and i want set http headers for this request.
I tried use <header> mediator but it not works. I think that <header>
mediator only set Soap headers, right ?
How can i set correctly headers for REST request ?
Use the<property..> mediator with the scope as "transport" [1]
<property name="string" [action=set|remove] (value="literal" | expression="xpath")
[scope=transport|axis2|axis2-client]/>
e.g.
<property name="myHeader" value="myConstValue" scope="transport"/>
cheers
asankha
[1] http://synapse.apache.org/Synapse_Configuration_Language.html#property
--
Asankha C. Perera
http://adroitlogic.org
http://esbmagic.blogspot.com