2014-07-22 32 views
0

我有3個Web應用程序,客戶端集成服務,我們稱之爲服務器。我需要將來自客戶端的REST請求傳遞給集成服務,然後將其重定向到服務器。之後,我需要通過單獨的彈簧集成應用程序將響應從服務器返回到客戶端。讓我解釋它是如何工作的。客戶端Web應用程序向集成服務(基於Spring集成的應用程序)發起REST請求,集成服務執行一些日誌記錄和分析,然後繞過此請求到服務器。這部分工作正常。但是當客戶端從集成服務應用程序獲得響應時,它將獲得空的JSON對象。我檢查過,服務器向集成服務應用程序發送正確的JSON對象,但之後它將空的JSON傳遞給客戶端。我猜想xml配置有問題。你能請教我應該看的地方嗎?下面是我的春天整合的.xmlSpring集成應用程序不發送回調請求

<int-http:outbound-gateway id="outboundGateway" 
           request-channel="request" 
           reply-channel="response" 
           http-method="POST" 
           url="http://localhost:8080/findAll" 
           extract-request-payload="true" 
      /> 

    <!----> 
    <int-http:inbound-gateway id="serviceGateway" 
           supported-methods="GET, POST" 
           request-channel="httpRequest" 
           mapped-response-headers="Return-Status, Return-Status-Msg, HTTP_RESPONSE_HEADERS" 
           path="/service/findAll" 
           reply-timeout="50000"> 
    </int-http:inbound-gateway> 

    <int:router input-channel="httpRequest" expression="headers.http_requestMethod"> 
     <int:mapping value="GET" channel="request"/> 
    </int:router> 

回答

相關問題