<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:si-xml="http://www.springframework.org/schema/integration/xml"
	xmlns:si="http://www.springframework.org/schema/integration"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	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/xml
			https://www.springframework.org/schema/integration/xml/spring-integration-xml.xsd">

	<si:channel id="output">
		<si:queue capacity="1"/>
	</si:channel>

	<si-xml:marshalling-transformer
		id="parseOnly"
		order="2"
		auto-startup="false"
		phase="-1"
		role="foo"
		send-timeout="123"
		input-channel="marshallingTransformerNoResultFactory"
		output-channel="output"
		marshaller="marshaller" />

	<si:channel id="marshallingTransformerNoResultFactory"/>
	<si-xml:marshalling-transformer
		input-channel="marshallingTransformerNoResultFactory"
		output-channel="output"
		marshaller="marshaller" />

	<si:channel id="marshallingTransformerStringResultFactory"/>
	<si-xml:marshalling-transformer
		input-channel="marshallingTransformerStringResultFactory"
		output-channel="output"
		marshaller="marshaller"
		result-type="StringResult" />

	<si:channel id="marshallingTransformerDOMResultFactory"/>
	<si-xml:marshalling-transformer
		input-channel="marshallingTransformerDOMResultFactory"
		output-channel="output"
		marshaller="marshaller"
		result-type="DOMResult" />

	<si:channel id="marshallingTransformerCustomResultFactory"/>
	<si-xml:marshalling-transformer
		input-channel="marshallingTransformerCustomResultFactory"
		output-channel="output"
		marshaller="marshaller"
		result-factory="stubResultFactory" />

	<si:channel id="marshallingTransformerWithResultTransformer"/>
	<si-xml:marshalling-transformer
		input-channel="marshallingTransformerWithResultTransformer"
		output-channel="output"
		marshaller="marshaller"
		result-transformer="resultTransformer" />

	<si:channel id="marshallingTransformerWithFullMessage"/>
	<si-xml:marshalling-transformer
		input-channel="marshallingTransformerWithFullMessage"
		output-channel="output"
		extract-payload="false"
		marshaller="marshaller" />

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

	<bean id="resultTransformer" class="org.springframework.integration.xml.config.StubResultTransformer">
		<constructor-arg value="testReturn" />
	</bean>

	<bean id="stubResultFactory" class="org.springframework.integration.xml.config.StubResultFactory" />

</beans>
