cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: Convert SOAP service to a RESTful service
Date Tue, 14 Oct 2008 18:50:50 GMT

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

On Tuesday 14 October 2008 11:57:00 am kpalania wrote:
> I have a web service running with the following bean definition in
> cxf-servlet.xml. When I call an API in this WebService class, it returns a
> response that is embedded in the SOAP elements (soap:Envelope, etc). What I
> want is to be able to REST-enable this so that I simply get the response
> "as is" as opposed to it being embedded in the SOAP elements. I have the
> RESTful HTTP binding sample up and running but am unable to figure out what
> the Spring configuration should look like so that I can convert my web
> service to a RESTful service. Thanks for your help!
>
>    <jaxws:server id="adminService" serviceClass="com.company.WebService"
>   		address="/admin">
>         <jaxws:serviceBean>
> 	  		<bean class="com.company.WebServiceImpl" />
> 		</jaxws:serviceBean>
>
> 	    <jaxws:dataBinding>
> 			<bean class="org.apache.cxf.xmlbeans.XmlBeansDataBinding"/>
> 	    </jaxws:dataBinding>
>     </jaxws:server>



-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog

Mime
View raw message