<?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="requestChannel"/>

	<ws:outbound-gateway id="gatewayWithAllInOneMarshaller"
	                     request-channel="requestChannel"
                         uri="https://example.org"
	                     marshaller="marshallerAndUnmarshaller"/>

	<ws:outbound-gateway id="gatewayWithSeparateMarshallerAndUnmarshaller"
	                     request-channel="requestChannel"
	                     uri="https://example.org"
	                     marshaller="marshaller"
	                     unmarshaller="unmarshaller"/>

	<ws:outbound-gateway id="gatewayWithCustomRequestCallback"
	                     request-channel="requestChannel"
	                     uri="https://example.org"
	                     marshaller="marshallerAndUnmarshaller"
	                     request-callback="requestCallback"/>

	<ws:outbound-gateway id="gatewayWithAllInOneMarshallerAndMessageFactory"
	                     request-channel="requestChannel"
	                     uri="https://example.org"
	                     marshaller="marshallerAndUnmarshaller"
	                     message-factory="messageFactory"/>

	<ws:outbound-gateway id="gatewayWithSeparateMarshallerAndUnmarshallerAndMessageFactory"
	                     request-channel="requestChannel"
	                     uri="https://example.org"
	                     marshaller="marshaller"
	                     unmarshaller="unmarshaller"
	                     message-factory="messageFactory"/>

	<bean id="marshallerAndUnmarshaller" class="org.springframework.integration.ws.config.StubMarshallerAndUnmarshaller"/>

	<bean id="marshaller" class="org.springframework.integration.ws.config.StubMarshaller"/>

	<bean id="unmarshaller" class="org.springframework.integration.ws.config.StubUnmarshaller"/>

	<bean id="requestCallback" class="org.springframework.integration.ws.config.StubWebServiceMessageCallback"/>

	<bean id="messageFactory" class="org.springframework.integration.ws.config.StubMessageFactory"/>

</beans>
