【发布时间】:2017-02-01 08:37:29
【问题描述】:
我正在使用属性“INC”来存储传入消息(在日志中正确显示)并通过有效负载调解器进行正确映射。
我通过有效载荷得到的修改后的结构如下。(正确映射)
稍后,我将使用如下的标注调解器从该端点获取响应。
使用 LogText 查看响应。
然后添加过滤器如下:
<property name="INC" expression="get-property('IntRequest')" scope="default" type="STRING"/>
<property name="LogText" value="call response" scope="default" type="STRING"/>
<filter xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:platformFaults="urn:faults_2015_1.platform.webservices.com" source="//platformFaults:code/text()" regex="WS_CONCUR_SESSION_DISALLWD">
<then>
<log level="full" separator=",*Fault in Call***">
<property name="REQUEST" expression="get-property('INC')" scope="default" type="STRING" />
</log>
</then>
<else/>
</filter>
但是,在这里我没有得到 REQUEST 的值.. 它显示了“呼叫响应”的值.. 如何正确获取 REQUEST 的值??
【问题讨论】:
-
你的问题不清楚。您有名为
IntRequest的属性吗?
标签: properties wso2 mediator