您可以修改通過添加<send/>
調解員取出<drop/>
這樣的文章中提到的replySequence
..
<sequence xmlns="http://ws.apache.org/ns/synapse" name="replySequence">
<log level="full">
<property name="REPLY" value="MESSAGE">
</property></log>
<!-- Send the messages where they are destined to (i.e. the 'To' EPR of the message) -->
<send/>
</sequence>
..或者你可以定義端點明確發送答覆這樣的..
<sequence xmlns="http://ws.apache.org/ns/synapse" name="replySequence">
<log level="full">
<property name="REPLY" value="MESSAGE">
</property></log>
<!-- Send to an explicit address -->
<send>
<endpoint>
<address uri="http://{Add your address here}/"/>
</endpoint>
</send>
</sequence>
我認爲如果我想將它發送給其他服務,但我希望將響應發回給調用者(提交請求的人),則您的建議可行。無論如何,我能做到嗎? – Premkumar 2012-02-24 10:11:00