Skip to content

Instantly share code, notes, and snippets.

@edgars
Created May 12, 2015 00:22
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 edgars/50dfa0be4a76821e270f to your computer and use it in GitHub Desktop.
Save edgars/50dfa0be4a76821e270f to your computer and use it in GitHub Desktop.
<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