forked from membrane/api-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproxies.xml
More file actions
35 lines (31 loc) · 1.22 KB
/
Copy pathproxies.xml
File metadata and controls
35 lines (31 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<spring:beans xmlns="http://membrane-soa.org/proxies/1/"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
http://membrane-soa.org/proxies/1/ http://membrane-soa.org/schemas/proxies-1.xsd">
<router>
<api port="2000" method="GET">
<path>/cities/{city}</path>
<request>
<soapBody version="1.1"><![CDATA[
<getCity xmlns="https://predic8.de/cities">
<name>${pathParam.city}</name>
</getCity>
]]></soapBody>
<setHeader name="SOAPAction"
value=" https://predic8.de/cities/get"/>
</request>
<response>
<template contentType="application/json">
{
"country": ${property.country},
"population": ${property.population}
}
</template>
<setProperty name="country" value="${//country}" language="xpath"/>
<setProperty name="population" value="${//population}" language="xpath"/>
</response>
<target method="POST" url="https://www.predic8.de/city-service"/>
</api>
</router>
</spring:beans>