2013-10-04 103 views
0

當我嘗試在服務的順序中設置屬性並將其置於出站序列中時,它始終爲空。 我的代理服務,代理服務中未設置屬性

<?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> 

回答

0

範圍應該是默認或突觸設置inSequence中和訪問它在outsequence的屬性。

scope="default"