- 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>
推薦閱讀
- Java 開發從入門到精通(第2版)
- JMeter 性能測試實戰(第2版)
- iOS應用逆向工程(第2版)
- C語言程序設計簡明教程:Qt實戰
- Building Serverless Architectures
- JavaScript動態網頁編程
- Serverless Web Applications with React and Firebase
- 小程序從0到1:微信全棧工程師一本通
- 零基礎學C語言(第4版)
- UML基礎與Rose建模實用教程(第三版)
- VMware vSphere Design Essentials
- Learning Redux
- PHP程序設計經典300例
- Python算法交易實戰
- FORTRAN程序設計權威指南