<?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:si="http://www.springframework.org/schema/integration"
	   xmlns:ws="http://www.springframework.org/schema/integration/ws"
	   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/ws
			https://www.springframework.org/schema/integration/ws/spring-integration-ws.xsd">

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

	<si:chain input-channel="wsOutboundGatewayInsideChain" output-channel="replyChannel">
		<ws:outbound-gateway uri="http://test.example.org"
							 message-senders="mockMessageSender"/>
	</si:chain>

	<bean id="mockMessageSender" class="org.springframework.integration.ws.SimpleWebServiceOutboundGatewayTests"
		  factory-method="createMockMessageSender">
		<constructor-arg
				value="#{T(org.springframework.integration.ws.SimpleWebServiceOutboundGatewayTests).responseSoapMessage}"/>
	</bean>

</beans>
