<mule xmlns="http://www.mulesource.org/schema/mule/core/2.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:spring="http://www.springframework.org/schema/beans"
	xmlns:cxf="http://www.mulesource.org/schema/mule/cxf/2.0"
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd 
http://www.mulesource.org/schema/mule/core/2.0
http://www.mulesource.org/schema/mule/core/2.0/mule.xsd 
http://www.mulesource.org/schema/mule/cxf/2.0
http://www.mulesource.org/schema/mule/cxf/2.0/mule-cxf.xsd">
	<model name="TEST">

		<service name="testAssertionRequestService">
			<inbound>
				<cxf:inbound-endpoint synchronous="true" remoteSync="true"
					address="http://localhost:63081/testAssertionRequest" />
			</inbound>
			<component>
				<singleton-object
					class="com.test.SAMLAssertionRequestServiceImpl" />
			</component>
			<outbound>
				<outbound-pass-through-router>
					<cxf:outbound-endpoint
						address="http://localhost:63082/samlTestService" proxy="true" remoteSync="true" synchronous="true">
						<transformers>
							<custom-transformer
								class="com.test.saml.SAMLAssertionArtifactTransformer">
								<spring:property name="samlUtil"
									ref="samlUtil" />
							</custom-transformer>
						</transformers>
					</cxf:outbound-endpoint>
				</outbound-pass-through-router>
			</outbound>
		</service>

		<service name="samlTestServer">
			<inbound>
				<cxf:inbound-endpoint
					address="http://localhost:63082/samlTestService">
					<cxf:inInterceptors>
						<spring:bean
							class="org.apache.cxf.interceptor.LoggingInInterceptor" />
					</cxf:inInterceptors>
				</cxf:inbound-endpoint>
			</inbound>
			<component>
				<singleton-object
					class="com.test.saml.server.SAMLTestServicePortTypeImpl">
					<property key="jaxbUtil" value-ref="jaxbUtil" />
					<property key="samlUtil" value-ref="samlUtil" />
				</singleton-object>
			</component>
		</service>
	</model>
	<spring:bean name="samlUtil" class="com.test.saml.SAMLUtil">
		<spring:property name="securityUtil" ref="securityUtil" />
	</spring:bean>
	<spring:bean name="securityUtil"
		class="com.esi.security.SecurityUtil" />
	<spring:bean name="jaxbUtil" class="com.test.jaxb.JAXBUtil">
		<spring:constructor-arg index="0"
			value="org.oasis.saml.protocol" />
	</spring:bean>
</mule>