- 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>
推薦閱讀
- Spring 5.0 Microservices(Second Edition)
- Git Version Control Cookbook
- C語言程序設計(第3版)
- 算法訓練營:入門篇(全彩版)
- 趣學Python算法100例
- jQuery從入門到精通 (軟件開發視頻大講堂)
- Learning Firefox OS Application Development
- Yii Project Blueprints
- Mastering Backbone.js
- Android驅動開發權威指南
- 零基礎學Kotlin之Android項目開發實戰
- C語言程序設計實訓教程與水平考試指導
- Python語言科研繪圖與學術圖表繪制從入門到精通
- Getting Started with Python
- Python Programming for Arduino