- WSO2 Developer’s Guide
- Fidel Prieto Estrada Ramón Garrido Lázaro
- 120字
- 2021-07-08 10:06:00
The send mediator
The send mediator is used to make a non-blocking request to a backend with the current payload. The backend is configured with the endpoints that can have implicit, inline, named, or store in the registry. When the send mediator is used in the out sequence, it will perform a response to the client.
This is the implicit send syntax:
<send/>
The following is the endpoint send syntax:
<send [receive="string"]> (endpointref | endpoint)+ </send>
Here, keep the following things in mind: endpointref is a named or registry endpoint. endpoint is an anonymous endpoint defined inline, receive is the sequence that processes the backend response.
For example, consider send with inline definition (endpoint type):
<send> <endpoint> <address uri="http://localhost:8280/services"/> </endpoint> </send>
Now, consider send with a named endpoint (endpointref type):
<send receive="OutSequence">
<endpoint key="CreditEpr"/>
</send>
推薦閱讀
- Android和PHP開發最佳實踐(第2版)
- 軟件架構設計:大型網站技術架構與業務架構融合之道
- Python從菜鳥到高手(第2版)
- Learn Programming in Python with Cody Jackson
- Python 3網絡爬蟲實戰
- Learning AndEngine
- C程序設計案例教程
- iOS編程基礎:Swift、Xcode和Cocoa入門指南
- Learning Three.js:The JavaScript 3D Library for WebGL
- HTML5從入門到精通 (第2版)
- Android應用開發深入學習實錄
- 硬件產品設計與開發:從原型到交付
- Oracle 12c從入門到精通(視頻教學超值版)
- Android編程權威指南(第4版)
- Android初級應用開發