Announcement Announcement Module
No announcement yet.
Help needed: Post rquest no response with http:inbound-gateway Page Title Module
Move Remove Collapse
Conversation Detail Module
  • 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:
    <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=""
    	request-channel="request" reply-channel="reply" http-method="POST"
    	request-factory="httpRequestFactory" expected-response-type="java.lang.String" />
    and here is my responseView.jsp
    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    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'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?