【发布时间】:2012-06-13 01:39:19
【问题描述】:
我有这个 WSO2 ESB 代理:
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse" name="sid008" transports="http" startOnLoad="true" trace="disable">
<target>
<inSequence>
<switch source="get-property('inquiryId')">
<log level="full"/>
<case regex="">
<send/>
</case>
<default>
</default>
</switch>
</inSequence>
<outSequence>
<....some processing..>
<send/>
</outSequence>
</target>
<publishWSDL key="CommonService.wsdl">
<resource location="request.xsd" key="request.xsd"/>
<resource location="response.xsd" key="response.xsd"/>
<resource location="SMEV.xsd" key="SMEV.xsd"/>
<resource location="statusAndError.xsd" key="statusAndError.xsd"/>
</publishWSDL>
</proxy>
在默认情况下,此代理在没有发送中介的情况下不会运行outSequence。不发送调解员怎么办
【问题讨论】:
-
一般来说,如果 inSequence 没有指定发送中介,那么 WSO2 ESB 收到的消息会在 inSequence 结束时被丢弃。由于请求消息并没有真正进入代理配置中提到的端点,所以 outSequence 中的进程确实没有响应。你的用例是什么?