未在代理服务中设置属性

时间:2013-10-04 09:19:41

标签: wso2 wso2esb

当我尝试在服务的顺序中设置属性并在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>

1 个答案:

答案 0 :(得分:0)

范围应该是default或synapse,以在insequence中设置属性并在outsequence中访问它。

scope="default"