Charles Moulliard created CAMEL-8917:
----------------------------------------
Summary: camel-cxfrs doesn't use the resource classes handle the
invocation directly
Key: CAMEL-8917
URL: https://issues.apache.org/jira/browse/CAMEL-8917
Project: Camel
Issue Type: Improvement
Components: el-cxfrs
Reporter: Charles Moulliard
Here is the content of our discussion
As the camel-swagger get the ServiceModule from the Route definition which is
dumped to XML, it is quit different from the CXF-swagger who builds the
ServiceModule from the Resource Class.
As camel-cxfrs doesn't use the resource classes handle the invocation directly
(it just delegates the request to the camel route), so it causes some trouble
if the CXF-swagger try to load the resource classes. To fix it, we may need to
find a way to generate the ServiceModule rightly.
----- Original Message -----
From: "Charles Moulliard" <[email protected]>
Cc: "Yue Fang" <[email protected]>
Sent: Thursday, June 11, 2015 5:39:52 PM
Subject: Camel + CXF & Swagger
Issue -->
{code}
I try now to use Swagger as described here :
https://github.com/swagger-api/swagger-core/wiki/Java-CXF-Quickstart and
implemented as such :
https://github.com/cmoulliard/use-cases/blob/master/fabric-camel-rest/src/main/resources/OSGI-INF/blueprint/camel.xml#L11-L40
When we launch locally mvn camel:run but I get -->
"No message body writer has been found for class
org.apache.cxf.message.MessageContentsList, ContentType:
application/json;charset=utf-8" at this address
"http://localhost:8080/cxf/rest/api-docs
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)