Skip to content

Instantly share code, notes, and snippets.

@tmkasun
Created May 1, 2017 13:38
Show Gist options
  • Save tmkasun/822f310f395bd10f30e89f0f11eeb239 to your computer and use it in GitHub Desktop.
Save tmkasun/822f310f395bd10f30e89f0f11eeb239 to your computer and use it in GitHub Desktop.
WSO2 APIM Dynamically Change Endpoint URL Synapse Sequence
<sequence xmlns="http://ws.apache.org/ns/synapse" name="WSO2AM--Ext--In">
<log level="custom">
<property name="TRACE" value="Inside InSequence"/>
</log>
<log level="full"/>
<property name="uri.var.sub_domain1" expression="get-property('system','environment.sub_domain1')"/>
<property name="uri.var.port" expression="get-property('system','environment.port')"/>
<log level="custom">
<property name="HOST " expression="$ctx:uri.var.sub_domain1"/>
<property name="PORT " expression="$ctx:uri.var.port"/>
</log>
</sequence>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment