- 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>
推薦閱讀
- Java程序設計(慕課版)
- aelf區塊鏈應用架構指南
- UI智能化與前端智能化:工程技術、實現方法與編程思想
- Hands-On Microservices with Kotlin
- Linux命令行與shell腳本編程大全(第4版)
- Xcode 6 Essentials
- 區塊鏈項目開發指南
- Python全棧開發:基礎入門
- AI自動化測試:技術原理、平臺搭建與工程實踐
- Android編程權威指南(第4版)
- 讀故事學編程:Python王國歷險記
- Raspberry Pi Robotic Projects
- C#網絡編程高級篇之網頁游戲輔助程序設計
- Game Development Patterns and Best Practices
- Mastering VMware vSphere Storage