<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">

<beans>
	<import resource="classpath:org/codehaus/xfire/spring/xfire.xml" />

	<bean id="xfire.annotationServiceFactory"
		class="org.codehaus.xfire.annotations.AnnotationServiceFactory">
		<constructor-arg index="0">
			<ref bean="xfire.commonsAnnotations" />
		</constructor-arg>
		<constructor-arg index="1">
			<ref bean="xfire.transportManager" />
		</constructor-arg>
		<constructor-arg index="2">
			<ref bean="xfire.aegisBindingProvider" />
		</constructor-arg>
	</bean>

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

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

	<bean name="weatherService"
		class="org.codehaus.xfire.spring.ServiceBean">
		<property name="serviceBean" ref="weatherServiceImpl" />
		<property name="serviceFactory" ref="xfire.jaxbServiceFactory" />
		<property name="schemas">
			<list>
				<value>WeatherForecast.xsd</value>
			</list>
		</property>
	</bean>

	<!-- working, properly annotated service endpoint -->
	<bean id="weatherServiceImpl"
		class="org.codehaus.xfire.jaxb.WeatherServiceImpl" />

	<!-- <bean id="domInHandler" class="org.codehaus.xfire.util.dom.DOMInHandler" />
		
		<bean id="wss4jHandler" class="org.codehaus.xfire.security.wss4j.WSS4JInHandler">
		<constructor-arg index="0">
		<props>
		<prop key="action">UsernameToken</prop>
		<prop key="passwordCallbackClass">org.codehaus.xfire.demo.ServerPasswordHandler</prop>
		</props>
		</constructor-arg>
		</bean> -->
</beans>
