If we require to preserver the response message headers we required to set the
<property name="BLOCKING_SENDER_PRESERVE_REQ_HEADERS" value="false"/>
Sample proxy configuration
<? xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="first"
transports="https"
statistics="enable"
trace="enable"
startOnLoad="true">
<target>
<inSequence>
<property name="BLOCKING_SENDER_PRESERVE_REQ_HEADERS" value="false"/>
<call blocking="true">
<endpoint>
<address uri="https://localhost:8243/services/backend1"
trace="enable"
statistics="enable"/>
</endpoint>
</call>
<log level="full"/>
</inSequence>
<outSequence/>
</target>
<description/>
</proxy>
No comments :
Post a Comment