0

当我尝试在服务的 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>
4

1 回答 1

0

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

scope="default"
于 2013-10-04T09:22:30.537 回答