Hi guys:
I was trying to develop an application act as a service proxy those days , and here is my configration:
and here is my responseView.jspCode:<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" />
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.Code:<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% response.getWriter().write(request.getAttribute("response").toString()); %>
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?


Reply With Quote
