0

サービスのシーケンスでプロパティを設定し、アウト シーケンスで取得しようとすると、常に 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

Insequence でプロパティを設定し、outsequence でそれにアクセスするには、スコープを default または synapse にする必要があります。

scope="default"
于 2013-10-04T09:22:30.537 に答える