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
27 lines (22 loc) · 953 Bytes
/
proxies.xml
File metadata and controls
27 lines (22 loc) · 953 Bytes
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
<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">
<request>
<setProperty name="fn" value="${/person/@firstname}" language="xpath"/>
<template>Buenas Noches, ${property.fn}sito!</template>
</request>
<return statusCode="200" contentType="text/plain"/> <!-- To forward to backend use target below instead of return -->
<!-- <target host="YourBackendHost" port="YourBackendPort"/>-->
</api>
<api port="2001">
<request>
<template location="template.xml"/>
</request>
<return statusCode="200"/>
</api>
</router>
</spring:beans>