Thanks Dan. I have a cxf-servlet.xml file where I have the jaxws:serviceBean
definition and a separate applicationContext.xml where I have all my
application specific Spring beans defined. If I move to using jaxrs, how
would this change? The example on the wiki imports cxf.xml,
cxf-extension-jaxrs-binding.xml and the cxf-servlet.xml. I have the jaxrs
bean definition defined in the last file while I don't have the other files
(atleast, can't find it). Could you let me know how this should work? Thanks
very much!

<?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: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/jaxrs
http://cxf.apache.org/schemas/jaxrs.xsd";>

  <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-servlet.xml" />

  <jaxrs:server id="customerService" address="/">
    <jaxrs:serviceBeans>
      <ref bean="customerService" />
    </jaxrs:serviceBeans>
  </jaxrs:server>

  <bean id="customerService" class="demo.jaxrs.server.CustomerService" />
</beans>




dkulp wrote:
> 
> My suggestion would be to add the JAX-RS annotations and configure it as a 
> JAX-RS service:
> http://cwiki.apache.org/CXF20DOC/jax-rs-jsr-311.html 
> That's definitely the direction we're heading for REST support.
> 
> Dan
> 

-- 
View this message in context: 
http://www.nabble.com/Convert-SOAP-service-to-a-RESTful-service-tp19975949p19980128.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to