这里的链接到错误追踪:https://wso2.org/jira/browse/ESBJAVA-1053
我终于做出了钩是这样的:
<!-- otherwise second request won't be sent -->
<property name="DISABLE_CHUNKING" value="true" scope="axis2"/>
<enrich>
<source clone="false" type="envelope" xpath="" property="" />
<target action="replace" type="property" xpath="" property="INIT_MSG" />
</enrich>
<clone sequential="false">
<target>
<sequence>
<enrich>
<source xmlns:ns="http://org.apache.synapse/xsd" xmlns:ns3="http://org.apache.synapse/xsd" clone="false" type="custom" xpath="get-property('INIT_MSG')" property="" />
<target action="replace" type="envelope" xpath="" property="" />
</enrich>
<send>
<endpoint>
<address uri="address1" />
</endpoint>
</send>
</sequence>
</target>