Announcement Announcement Module
Collapse
No announcement yet.
Help needed: Post rquest no response with http:inbound-gateway Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help needed: Post rquest no response with http:inbound-gateway

    Hi guys:
    I was trying to develop an application act as a service proxy those days , and here is my configration:
    Code:
    <si:channel id="request" />
    <si:channel id="reply" />
    
    <si-http:inbound-gateway name="/test/test.json"
    	request-channel="request" reply-channel="reply"
    	supported-methods="POST,GET" reply-key="response" view-name="responseView" />
    
    <si-http:outbound-gateway url="http://www.imqq.com"
    	request-channel="request" reply-channel="reply" http-method="POST"
    	request-factory="httpRequestFactory" expected-response-type="java.lang.String" />
    and here is my responseView.jsp
    Code:
    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    <%
    	response.getWriter().write(request.getAttribute("response").toString());
    %>
    When i use "GET" method to request /test/test.json, i got the response text as soon as I send the request. But when i change to use "POST" method , there is no response render.
    I checked the log file ,the application has got the http://www.imqq.com's main page html code when use post method to request the inbound gateway, but , no response render and the client wating for response for mintues.

    I was confused, is there someone can help me out?
Working...
X