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

	<bean id="propertyConfigurer"
		class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<property name="properties">
			<props>
				<prop key="transport.soap.baseAddress">http://localhost:8090/app/services/</prop>
				<prop key="infrastructure.name">junitTest</prop>
				<prop key="transport.soap.force.local.address">true</prop>
			</props>
		</property>
	</bean>

	<import
		resource="classpath:/eu/dnetlib/soap/cxf/applicationContext-eprbuilders.xml" />

	<bean id="defaultServiceNameResolver"
		class="eu.dnetlib.enabling.tools.registration.InterfaceServiceNameResolver" />

	<bean id="serviceResolver" 
		class="eu.dnetlib.test.utils.MockBeanFactory" 
		p:clazz="eu.dnetlib.enabling.tools.ServiceResolver" />		

	<bean id="lookupLocator" class="eu.dnetlib.enabling.tools.StaticServiceLocator">
		<property name="service">
			<bean class="eu.dnetlib.test.utils.MockBeanFactory" p:clazz="eu.dnetlib.enabling.is.lookup.rmi.ISLookUpService" />
		</property>
	</bean>
	
	<bean id="dynamicLocator" class="eu.dnetlib.enabling.tools.DynamicServiceLocator"
		p:clazz="eu.dnetlib.enabling.resultset.rmi.ResultSetService"
		p:lookUpLocator-ref="lookupLocator" />

	<util:list id="serviceProfiles">
		<value><![CDATA[<service><id>1234</id><url>http://localhost:1234/app/services/resultSet</url></service>]]></value>
		<value><![CDATA[<service><id>1234</id><url>http://localhost:8090/otherContext/services/resultSet</url></service>]]></value>
		<value><![CDATA[<service><id>1234</id><url>http://localhost:8090/app/services/resultSet</url></service>]]></value>
		<value><![CDATA[<service><id>1234</id><url>http://192.168.1.12:8090/app/services/resultSet</url></service>]]></value>
	</util:list>
</beans>
