You need to set the content-type on the endpoint, not on the service
factory bean: e.g.
jaxws:endpoint id=catalogJsonWS
implementor=#catalogRest
address=/json/Catalog
bindingUri=http://apache.org/cxf/binding/http;
jaxws:properties
entry key=Content-Type
Thanks a lot. I tried this configuration and it perfectly worked.
Dale Peakall-2 wrote:
You need to set the content-type on the endpoint, not on the service
factory bean: e.g.
jaxws:endpoint id=catalogJsonWS
implementor=#catalogRest
address=/json/Catalog
|
--|
|
| Subject: |
|
--|
|Re: JSON output
Hi Kaleb, I am really not sure if it makes sense to convert SOAP message to
JSON. But if the payload is Plain-old--XML(POX), it should be doable in CXF. At
the moment, CXF HTTP binding can serve RESTful service in both POX and JSON
payload. Details can be found from