I have a WSO2 ESB 4.8.1 sequence which sends a message to an HTTP endpoint defined as
<http method="get" uri-template="http://host.example.com/v1/entity/{uri.var.id}/attributes/foo">
The property is previously set by XPath:
<property xmlns:ns="http://org.apache.synapse/xsd" name="uri.var.id" expression="//id" scope="default" type="STRING" />
Sometimes it invokes the correct URL, and sometimes it literally calls http://host.example.com/v1/entity/{uri.var.id}/attributes/foo
without substituting the variable. Why?