<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:aop="http://www.springframework.org/schema/aop"
	xmlns:xfire="http://xfire.codehaus.org/config/1.0"
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
        http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
        http://www.springframework.org/schema/aop 
        http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">

	<bean name="jaxbServiceFactory"
		class="org.codehaus.xfire.jaxb2.JaxbServiceFactory">
		<constructor-arg ref="xfire.transportManager" />
	</bean>

	<bean id="webAnnotations"
		class="org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations" />


	<bean id="handlerMapping"
		class="org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping">
		<property name="typeMappingRegistry">
			<bean class="org.codehaus.xfire.jaxb2.JaxbTypeRegistry" />
		</property>
		<property name="xfire">
			<ref bean="xfire" />
		</property>
		<property name="webAnnotations">
			<ref bean="webAnnotations" />
		</property>

	</bean>

	<bean
		class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
		<property name="urlMap">
			<map>
				<entry key="/">
					<ref bean="handlerMapping" />
				</entry>
			</map>
		</property>
	</bean>

	<bean id="fakeService"
		class="com.fragbase.example.service.jpa.FakeService" />

	<bean id="fakeWS" class="org.codehaus.xfire.spring.ServiceBean">
		<property name="serviceBean">
			<ref bean="fakeService" />
		</property>
		<property name="serviceFactory" ref="jaxbServiceFactory" />
	</bean>



	<import resource="classpath:org/codehaus/xfire/spring/xfire.xml" />

</beans>

