<api xmlns="http://ws.apache.org/ns/synapse" name="MapService" context="/MapService">
<resource methods="GET" uri-template="/gettemperature?x={lon}&y={lat}">
<inSequence>
<call>
<endpoint>
<http method="get" uri-template="http://localhost:9765/SimpleMap_1.0.0/services/map/getcity?x={uri.var.lon}&y={uri.var.lat}"></http>
</endpoint>
</call>
<property name="uri.var.city" expression="json-eval($.city)"></property>
<log level="full">
<property name="locationLOG" expression="get-property(uri.var.city)"></property>
</log>
<send>
<endpoint>
<http method="get" uri-template="http://localhost:9765/SimpleMap_1.0.0/services/weather/gettemperature?city={uri.var.city}"></http>
</endpoint>
</send>
</inSequence>
<outSequence>
<send></send>
</outSequence>
</resource>
</api>