- 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>
推薦閱讀
- 黑客攻防從入門到精通(實戰秘笈版)
- JavaScript從入門到精通(微視頻精編版)
- ClickHouse性能之巔:從架構設計解讀性能之謎
- Learning PostgreSQL
- Groovy for Domain:specific Languages(Second Edition)
- YARN Essentials
- Web Application Development with MEAN
- 零基礎學MQL:基于EA的自動化交易編程
- Learning JavaScript Data Structures and Algorithms
- Mastering JavaScript Design Patterns(Second Edition)
- Mastering Xamarin.Forms(Second Edition)
- Kivy Cookbook
- 軟件測試技術
- 實戰Python網絡爬蟲
- 城市信息模型平臺頂層設計與實踐