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


	<int:channel id="inputChannel"/>
	<int:channel id="inputMarshallingChannel"/>

	<int-ws:outbound-gateway id="withHeaderMapper"
	                     request-channel="inputChannel"
	                     reply-channel="outputChannel"
	                     uri="https://example.org"
	                     mapped-request-headers="foo*, *baz*"
	                     mapped-reply-headers="bar*"/>

	<int-ws:outbound-gateway id="marshallingWithHeaderMapper"
	                     request-channel="inputMarshallingChannel"
	                     reply-channel="outputChannel"
	                     uri="https://example.org"
	                     marshaller="marshaller"
	                     unmarshaller="ubmarshaller"
	                     mapped-request-headers="foo*, *baz*"
	                     mapped-reply-headers="bar*"/>

	<bean id="marshaller" class="org.springframework.oxm.xstream.XStreamMarshaller"/>

	<bean id="ubmarshaller" class="org.springframework.integration.ws.config.WebServiceOutboundGatewayWithHeaderMapperTests.SampleUnmarshaller"/>

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

</beans>
