繁体   English   中英

如何使用WSO2 ESB调解器向客户端显示消息

[英]How to display a message to the client using wso2 esb mediators

嗨,我用开关和dblookup介体创建了一个自定义序列。 在一种情况下,我想向客户显示一条消息。 我尝试了Respond Mediators,但使用cURL调用API时它不输出任何消息。 我刚刚获得HTTP OK。 关于如何处理此问题的任何建议?

* Hostname was NOT found in DNS cache
*   Trying localhost...
* Connected to localhost (localhost) port 8280 (#0)
> GET /drewtest/1.0/users/103 HTTP/1.1
> User-Agent: curl/7.38.0
> Host: localhost:8280
> Authorization: Bearer 53f983bc15a4b19e5d929fba4d4e9ada
> Accept: application/json
>
< HTTP/1.1 200 OK
< Host: localhost:8280
< Accept: application/json
< Date: Thu, 27 Nov 2014 03:29:24 GMT
* Server WSO2-PassThrough-HTTP is not blacklisted
< Server: WSO2-PassThrough-HTTP
< Transfer-Encoding: chunked
<
* Connection #0 to host localhost left intact

在您的特定情况下,请使用payload mediator创建一个自定义消息,然后使用<respond>介体。 它将消息发送给客户端。 尝试使用SOAPUI。

    Eg: 
    <Sequence>

     <Your case>
    <payload>
    It will construct the required message to be sent back to client
    </payload>
    <respond> //Will send that message to client

    </Yourcase>
 </Sequence>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM