【发布时间】:2014-08-14 15:03:15
【问题描述】:
我在 soap:Header 中有 2 个孩子 wsse:Security 并试图删除一个。我尝试使用 Enrich Mediator 执行此操作,但不是替换 soap:Header 它删除。这是重现它的简单示例:
<inSequence>
<enrich>
<source type="inline" clone="true">
<soapenv:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<foo/>
</soapenv:Header>
</source>
<target xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xpath="//soapenv:Header"/>
</enrich>
<log level="full"/>
</inSequence>
日志中介记录不带标题的消息。如果我添加到 target action="child",一切都会按预期工作。所以我有两个问题: 1. 为什么丰富的调解员会那样做? 2.如何用其他方式更改标题?
【问题讨论】: