Last active
March 8, 2022 20:01
-
-
Save susinda/88fa96f28b5ec0506add to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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