2015-12-07 33 views
1

如何獲得序列以從代理返回響應?我已嘗試呼叫,標註,發送&迴應。我的客戶使服務請求&得到200響應。我的端點服務被調用,但其響應似乎被丟棄。如果我使用通過代理(即沒有序列)一切正常,但是,我沒有日誌中介或統計。在WSO2ESB中順序發送後獲取響應

<?xml version="1.0" encoding="UTF-8"?> 
<sequence name="sequence_myservice" trace="enable" xmlns="http://ws.apache.org/ns/synapse"> 
    <log separator=""> 
    </log> 
    <send> 
     <endpoint key="conf:/myservice"/> 
    </send> 
</sequence> 
+0

解決 - 應該有(重新)閱讀文檔,需要輸入/輸出。對不起,如果我浪費了任何人的時間。 – hims987

回答

1

您需要使用您的<in> and <out> mediators裏面的序列,檢查documentation of in and out mediators

  • 建立你的inSequence中請求並調用<send>中介
  • 您將得到outSequence

這裏面的響應是一個代碼示例:

<sequence name="main" xmlns="http://ws.apache.org/ns/synapse"> 
    <in> 
     <log level="full"/> 
     <send> 
      <endpoint> 
       <address uri="http://localhost:9000/services/SimpleStockQuoteService"/> 
      </endpoint> 
     </send> 
    </in> 
    <out> 
     <!-- here is your response --> 
     <send/> 
    </out> 
</sequence> 
相關問題