in my use case I have this proxy:
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="MIOProxy"
transports="https,http"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence>
<sequence name="blackListCheck"/>
<send>
<failover>
<enpoint key="workerClusterTest" />
<enpoint key="replica_test" />
</failover>
</send>
</inSequence>
<outSequence>
<send/>
</outSequence>
</target>
<description/>
</proxy>
where the endpoint workerClusterTest has this configuration:
<endpoint xmlns="http://ws.apache.org/ns/synapse" name="workerClusterTest">
<property name="class" value="worker" scope="axis2"/>
<loadbalance algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin">
<endpoint>
<address url="http://localhost:8080/myservice1" />
</endpoint>
<endpoint>
<address url="http://localhost:8080/myservice2" />
</endpoint>
<endpoint>
<address url="http://localhost:8080/myservice3" />
</endpoint>
</loadbalance>
</endpoint>
While the message is reaching the workerClusterTest endpoint or the replicaTest, i want to insert in their address url a string: "MyString". Precisely if the message is sent to the workerClusterTest endpoint i want that its url
url="http://localhost:8080/myservice1"
to become
url="http://localhost:8080/MyString/myservice1"
is there a way in the inSequence to do this directly? Or a custom class mediator is the best way?