<?xml version="1.0" encoding="UTF-8"?>
<!--

This is the Spring configuration for the XFire web application.
The Spring DispatcherServlet will look for this file by default in the
WEB-INF directory by concatenating the "servlet-name" with "-servlet.xml".

-->
<beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
 
	<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="urlMap">
            <map>
                <entry key="/*">
                    <ref bean="dbwg"/>
                </entry>
            </map>
        </property>
    </bean>
    
	<bean id="dbwg" class="org.codehaus.xfire.spring.remoting.XFireExporter">
		<property name="serviceBean" ref="databindingService" />
		<property name="serviceClass">
			<value>org.w3c.dbwg.PortType</value>
		</property>
		<property name="serviceFactory" ref="xmlbeansServiceFactory" />
	</bean>
	
	<bean name="xmlbeansServiceFactory"	class="org.codehaus.xfire.xmlbeans.XmlBeansServiceFactory">
		<constructor-arg ref="xfire.transportManager" />
	</bean>
	
	<import resource="classpath:org/codehaus/xfire/spring/xfire.xml" />
</beans>