官术网_书友最值得收藏!

  • WSO2 Developer’s Guide
  • Fidel Prieto Estrada Ramón Garrido Lázaro
  • 63字
  • 2021-07-08 10:06:01

Main sequence

This sequence is triggered when a call to the EI server doesn't have a correct instance for an axis2 service; for example, when we make a request to the URL: http://localhost:8280/services/NonExistingService, the sequence returns a 202-accepted HTTP code and logs the incoming message to the console, unless there are one of the sample services:

<?xml version="1.0" encoding="UTF-8"?>
<sequence name="main" xmlns="http://ws.apache.org/ns/synapse">
<in>
<!-- Log all messages passing through -->
<log level="full"/>
<!-- ensure that the default configuration only sends
if it is one of samples -->
<!-- Otherwise Synapse would be an open proxy by default (BAD!) -->
<filter regex="http://localhost:9000.*"
source="get- property('To')">
<then>
<!-- Send the messages where they have been sent
(i.e. implicit "To" EPR) -->
<send/>
</then>
<else/>
</filter>
</in>
<out>
<send/>
</out>
<description>The main sequence for the message mediation</description>
</sequence>
主站蜘蛛池模板: 安塞县| 鄂州市| 泸定县| 盐源县| 沭阳县| 色达县| 台南市| 饶河县| 甘孜县| 米林县| 光泽县| 揭西县| 辽阳市| 开平市| 平山县| 兴化市| 泰宁县| 花莲县| 金山区| 崇左市| 信宜市| 霸州市| 浮山县| 左云县| 阳城县| 吉林省| 清水河县| 含山县| 平乡县| 理塘县| 惠州市| 常州市| 正镶白旗| 义乌市| 黄骅市| 建水县| 葵青区| 洛阳市| 鸡西市| 雅安市| 巴林右旗|