Jean-Baptiste Onofré created CXF-5830:
-----------------------------------------

             Summary: Support usage of WADL instead of the JAX-RS annotated 
class
                 Key: CXF-5830
                 URL: https://issues.apache.org/jira/browse/CXF-5830
             Project: CXF
          Issue Type: Improvement
          Components: JAX-RS
            Reporter: Jean-Baptiste Onofré


Right now, to create a REST service (directly in CXF or using camel-cxf in a 
Camel route), we have to provide a JAX-RS annotated class.
It's required by both server/consumer endpoint, but also for client/producer 
endpoint.

It would be great to use a WADL instead of the annotated class, as we do with 
the WSDL for SOAP services.

The CXFRS client can be invoked in a web client mode where no class is needed. 
However, it would be great to optimize it a bit, say pass WSDL document, may be 
some XPath expression to a given request and let it happen.
This can work in a typeless response mode for GETs so we'd get all the info 
from WADL and then provide JAX-RS response. Or may be even in a type mode if we 
know "Book" (some concrete model) is returned.

Once it's supported by CXF, I will enhance the camel-cxfrs component to use 
directly a WADL without the JAX-RS annotated class.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to