官术网_书友最值得收藏!

  • 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>
主站蜘蛛池模板: 石渠县| 巩义市| 滨海县| 崇左市| 上思县| 武城县| 兴国县| 隆林| 淄博市| 永宁县| 临朐县| 思南县| 建湖县| 桂林市| 延寿县| 资阳市| 诏安县| 兴仁县| 白银市| 鞍山市| 阳春市| 定襄县| 敦煌市| 昌吉市| 稷山县| 和林格尔县| 丰宁| 沽源县| 明溪县| 天台县| 织金县| 淮南市| 长治县| 彭山县| 博兴县| 东丰县| 方山县| 宝兴县| 正镶白旗| 南投县| 分宜县|