You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Thomas Gilbert <t....@tvcablenet.be> on 2008/09/19 10:49:37 UTC

jax-ws / json

Dear all,

I'm new to CXF so please accept my apologizes if I say / do something  
wrong.
I built a web service with CXF based on JAX-WS, running in an apache  
Tomcat container. Everything is working fine, I have a java CXF client  
accessing it by exchanging SOAP messages.

I would like this service to be able to reply with either SOAP or JSON  
encoded messages, because I have 2 different applications accessing  
this web service, and one is based on GWT (Google Toolkit) which, I  
think, prefers JSON then SOAP.

Here is how my endpoint is configured in my cxf configuration file :


   <jaxws:endpoint id="core" address="/core"
       implementor="com.telovia.PanoramaService.WSPanoImpl" />

Anyone having implemented this ? Is it good practice ? Any advice is  
of course welcome.

Cordially,

Thomas