<?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:context="http://www.springframework.org/schema/context"
	xmlns:cxf="http://cxf.apache.org/core"
	xmlns:jaxws="http://cxf.apache.org/jaxws"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
        http://www.springframework.org/schema/context
        http://www.springframework.org/schema/context/spring-context-2.5.xsd
        http://cxf.apache.org/core
        http://cxf.apache.org/schemas/core.xsd
        http://cxf.apache.org/jaxws
        http://cxf.apache.org/schemas/jaxws.xsd">

	<!-- Load CXF modules from cxf.jar -->
	<import resource="classpath:META-INF/cxf/cxf.xml" />
	<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
	<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />

	<!-- Enable message logging using the CXF logging feature  -->   
	<cxf:bus>
		<cxf:features>
			<cxf:logging />
		</cxf:features>
	</cxf:bus>

	<!-- MovieService -->
	<bean id="anyframe.sample.movie.jaxws.MovieService"
		class="anyframe.sample.movie.jaxws.impl.MovieServiceImpl">
		<property name="movieDAO">
			<ref bean="movieDAO" />
		</property>		
	</bean>
	
	<bean id="movieDAO" class="anyframe.sample.movie.jaxws.impl.MovieDAODefaultImpl" />
		
	<!-- JAX-WS Frontend to expose movieService using server tag -->		
	<jaxws:server id="movieService" serviceBean="#anyframe.sample.movie.jaxws.MovieService" address="/Movie"/>
	
</beans>

