<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:int="http://www.springframework.org/schema/integration"
	xmlns:int-http="http://www.springframework.org/schema/integration/http"
	xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd
		http://www.springframework.org/schema/integration/http https://www.springframework.org/schema/integration/http/spring-integration-http.xsd">

	<bean id="restTemplate" class="org.springframework.web.client.RestTemplate"/>

	<int-http:outbound-gateway url="/testApps/httpMethod"
							   request-channel="requestChannel"
							   reply-channel="replyChannel"
							   rest-template="restTemplate"
							   expected-response-type="java.lang.String"
							   http-method-expression="payload"/>

	<int-http:outbound-gateway url="/testApps/httpMethod"
							   request-channel="defaultChannel"
							   reply-channel="replyChannel"
							   rest-template="restTemplate"
							   expected-response-type="java.lang.String"/>

	<int:channel id="replyChannel">
		<int:queue/>
	</int:channel>

</beans>
