Skip to content

Instantly share code, notes, and snippets.

@susinda
Last active March 8, 2022 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save susinda/88fa96f28b5ec0506add to your computer and use it in GitHub Desktop.
Save susinda/88fa96f28b5ec0506add to your computer and use it in GitHub Desktop.
<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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment