【发布时间】:2012-08-08 22:33:36
【问题描述】:
我正在努力使我在 wso2 esb 中的消息流工作,所以我需要一些帮助来实现基本的通信:
Service1 想要接收一个整数 Service2 生成随机数
Service1 有 InSequence: log, send (to addresspoint specified)。 OutSequence:记录,发送
这看起来像:
<proxy name="ClientAskNumber" transports="https http" startOnLoad="true"
trace="disable">
<target faultSequence="fault">
<inSequence>
<log level="full">
<property name="Insequence" value="***" />
</log>
<send>
<endpoint>
<address uri="http://localhost:8280/services/RandomNumbers" />
</endpoint>
</send>
</inSequence>
<outSequence>
<log level="full">
<property name="Outsequence" value="***" />
</log>
<send />
</outSequence>
</target>
</proxy>
我有这个回复:<faultstring>System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: urn:mediate. at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()....etc
这是什么意思?我还缺少其他东西吗?请帮忙。谢谢
编辑:
我正在研究 Wso2 ESB,我只需要了解如何使工作成为消息通信,之后我将尝试添加不同类型的中介。我只是在解决这个问题,因为我是这项技术的新手,正如你所看到的,我真的很难让它发挥作用......
EDIT2:*
<proxy xmlns="http://ws.apache.org/ns/synapse" name="ClientAskNumber" transports="https,http" statistics="disable" trace="disable" startOnLoad="true">
<target endpoint="RandomNumbers">
<inSequence>
<log>
<property name="CLIENTASKS" value="******C_ASKS" />
</log>
<send>
<endpoint key="RandomNumbers" />
</send>
</inSequence>
<outSequence>
<log>
<property name="CLIENTRECEIVES" value="*******C_RECEIVES" />
</log>
</outSequence>
</target>
</proxy>
【问题讨论】:
-
查看您的序列,您似乎只是将传入请求转发到地址端点?您可以使用 WSO2 的 pass through 代理很好地实现上述功能吗?您能否详细说明您要实现的目标?
-
我正在研究 Wso2 ESB,我只需要了解如何使工作成为消息通信,之后我将尝试添加不同类型的中介。我只是在解决这个问题,因为我是这项技术的新手,正如你所看到的,我真的很难让它发挥作用......
-
我已经从这个问题中删除了
carbon标签,因为它不相关。