diff src/main/webapp/WEB-INF/beans.xml @ 0:6a163b1bcd4d

first checkin
author casties
date Thu, 05 May 2011 16:19:03 +0200
parents
children ebcc41509c2e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/webapp/WEB-INF/beans.xml	Thu May 05 16:19:03 2011 +0200
@@ -0,0 +1,39 @@
+<?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:jaxws="http://cxf.apache.org/jaxws"
+      xmlns:jaxrs="http://cxf.apache.org/jaxrs"
+      xsi:schemaLocation="
+http://www.springframework.org/schema/beans
+http://www.springframework.org/schema/beans/spring-beans.xsd
+http://cxf.apache.org/jaxws
+http://cxf.apache.org/schemas/jaxws.xsd
+http://cxf.apache.org/jaxrs
+http://cxf.apache.org/schemas/jaxrs.xsd
+">
+
+  <description>
+    Configuration digilibservice
+  </description>
+  
+  <import resource="classpath:META-INF/cxf/cxf.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml" />
+  <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
+  
+  <!-- Here the REST-Service Endpoint Beans -->
+  <bean id="rest" class="info.textgrid.rest">
+  </bean>
+
+    <jaxws:endpoint id="digilibservice" wsdlLocation="/WEB-INF/DigilibService.wsdl" 
+    implementor="#rest" address="/service">
+    </jaxws:endpoint>
+
+  <!-- Rest-Endpoint Configuration -->
+  <jaxrs:server id="root" address="/rest">
+        <jaxrs:serviceBeans>
+            <ref bean="rest" />
+        </jaxrs:serviceBeans>
+  </jaxrs:server>  
+                  
+</beans>