WSO2 ESB从属性设置soap信封
我必须从使用xml内容填充的OM属性设置soap envolope。我使用enrich mediator通过以下代码实现这一点:WSO2 ESB从属性设置soap信封,wso2,wso2esb,Wso2,Wso2esb,我必须从使用xml内容填充的OM属性设置soap envolope。我使用enrich mediator通过以下代码实现这一点: <log> <property xmlns:ns="http://org.apache.synapse/xsd" name="envelope" expression="$ctx:mensaje" /> </log> <enrich> <source xmlns:ns="http://org.apache
<log>
<property xmlns:ns="http://org.apache.synapse/xsd" name="envelope" expression="$ctx:mensaje" />
</log>
<enrich>
<source xmlns:ns="http://org.apache.synapse/xsd" clone="false" type="property" property="mensaje" />
<target action="replace" type="envelope" xpath="" property="" />
</enrich>
我有个肥皂的毛病:
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>Index: 0, Size: 0</faultstring>
<detail/>
</soapenv:Fault>
soapenv:服务器
索引:0,大小:0
有什么帮助吗?您正在尝试从消息上下文获取属性。请在源配置中这样使用 获取属性('mensaje')
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>Index: 0, Size: 0</faultstring>
<detail/>
</soapenv:Fault>