<?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:simple="http://cxf.apache.org/simple"
      xsi:schemaLocation="
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
		http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd">

	<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" />
	
	<!-- MovieService -->
	<bean id="anyframe.sample.movie.MovieService"
		class="anyframe.sample.movie.impl.MovieServiceImpl">
		<property name="movieDAO">
			<ref bean="movieDAO" />
		</property>		
	</bean>
	
	<bean id="movieDAO" class="anyframe.sample.movie.impl.MovieDAODefaultImpl" />	

	<!-- Simple Frontend to expose MovieService with Aegis Databinding -->	
	<simple:server id="movieService" serviceBean="#anyframe.sample.movie.MovieService" serviceClass="anyframe.sample.movie.MovieService" address="/Movie">
        <simple:dataBinding>
       		<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
    	</simple:dataBinding>
	</simple:server>
	
</beans>	


