I've couple of services written ot for jax-rs requests, how can I easily
serve them over jax-ws with minimum coding ? I'm using beans.xml for
configuring , pls see the config below, i'm using cxf 2.1.1

<beans xmlns="http://www.springframework.org/schema/beans";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xmlns:jaxrs="http://cxf.apache.org/jaxrs";
  xmlns:cxf="http://cxf.apache.org/core";
  xsi:schemaLocation="
  http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
  http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
  http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.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="pQREST" address="/">
    <jaxrs:serviceBeans>
      <bean class="xx.yy.services.SessionService" />
    </jaxrs:serviceBeans>
    <jaxrs:entityProviders>
       <bean class="xx.yy.providers.TextXMLProvider" />
    </jaxrs:entityProviders>
    <jaxrs:inInterceptors>
     <bean class="xx.yy.interceptors.SessionInterceptor" />
    </jaxrs:inInterceptors>
    <jaxrs:features><cxf:logging /></jaxrs:features>
  </jaxrs:server>
</beans>

Reply via email to