Created
May 12, 2015 00:22
-
-
Save edgars/50dfa0be4a76821e270f 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="ClimaAPI" context="/clima" hostname="localhost" port="8280"> | |
<resource methods="GET" uri-template="/{country}/{city}"> | |
<inSequence> | |
<log level="full"></log> | |
<payloadFactory media-type="xml"> | |
<format> | |
<GetWeather xmlns="http://www.webserviceX.NET"> | |
<CityName>$1</CityName> | |
<CountryName>$2</CountryName> | |
</GetWeather> | |
</format> | |
<args> | |
<arg evaluator="xml" expression="get-property('uri.var.city')"></arg> | |
<arg evaluator="xml" expression="get-property('uri.var.country')"></arg> | |
</args> | |
</payloadFactory> | |
<header name="Action" value="urn:GetWeather"></header> | |
<send> | |
<endpoint> | |
<address uri="http://www.webservicex.net/globalweather.asmx" format="soap11"></address> | |
</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