当我尝试在服务的 in 序列中设置一个属性并在 out 序列中获取它时,它总是会变为 null。我的代理服务,
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="Simple_Stock_Quote_Service_Proxy"
transports="https,http"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence>
<property name="quoteType" value="strong" scope="axis2" type="STRING"/>
<log level="custom">
<property name="Type" expression="get-property('quoteType')"/>
</log>
</inSequence>
<outSequence>
<log level="custom">
<property name="Quote Rating" expression="get-property('quoteType')"/>
</log>
<send/>
</outSequence>
<endpoint>
<address uri="http://localhost:9000/services/SimpleStockQuoteService?wsdl"/>
</endpoint>
</target>
<publishWSDL uri="http://localhost:9000/services/SimpleStockQuoteService?wsdl"/>
<description/>
</proxy>