2015-01-21 1 views
2

페이로드 호출이있는 채널에서 으로 URL을 호출하여 JSON 응답을 반환하는 int-http : outbound-gateway는페이로드를 호출하는 방법은 int-http : outbound-gateway에서 rest/json 서비스를 호출하는 방법

초기 페이로드를 얻기 위해 호출자의 초기 페이로드를 얻을 어떻게

는 낫다고 생각은 그리 게이터에서 사용할 필요가

이 장면을이다

메시지 -> 채널 -> 서비스 활성화 -> 출력 채널

ou * int-http : outbound-gateway (call rest service2) -> * int-http : outbound-gateway (call rest service1) -> 응답은 *

출력 채널 ---> 그 <int-http:outbound-gateway> 호출하기 전에

<header-enricher> 
    <header name="requestPayload" expression="payload"/> 
</header-enricher> 

및 헤더에서 추출 :

  • 애그리 게이터 (aggregator)는

답변

1

당신은 MessageHeaders에 배치해야합니다 로직은 aggregator입니다.

+0

고마워요 .i 발견했습니다 !! http : //stackoverflow.com/questions/17998217/spring-integration-how-to-keep-the-orginal-payload-and-use-it-later? rq = 1 – javon

+0

잘 알고 있습니다. 따라서 대답에 동의하는 것처럼 들립니다. –

관련 문제