- 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>
推薦閱讀
- HTML5+CSS3+JavaScript從入門到精通:上冊(微課精編版·第2版)
- C++ Builder 6.0下OpenGL編程技術
- Web交互界面設計與制作(微課版)
- JavaScript Unlocked
- OpenCV for Secret Agents
- Implementing Cisco Networking Solutions
- Getting Started with SQL Server 2012 Cube Development
- C語言程序設計
- Quarkus實踐指南:構建新一代的Kubernetes原生Java微服務
- Reactive Android Programming
- 小程序,巧應用:微信小程序開發實戰(第2版)
- 深入解析Java編譯器:源碼剖析與實例詳解
- Web編程基礎:HTML5、CSS3、JavaScript(第2版)
- AngularJS UI Development
- C語言程序設計實驗指導與習題精解