這裏的鏈接到錯誤追蹤: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>