cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-5830) Support usage of WADL instead of the JAX-RS annotated class
Date Tue, 20 Jan 2015 12:27:34 GMT

    [ https://issues.apache.org/jira/browse/CXF-5830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14283770#comment-14283770
] 

Sergey Beryozkin commented on CXF-5830:
---------------------------------------

The general issue with WADL-only but also with Swagger only use of CXF JAX-RS is that the
best the generic hander can do to support the request and response payload is to use InputStream.
It is simpler with WS because it is just XML so at least one can use StreamSource, with RS
JAXP Source is only possible for XML payloads which is limited given that JSON is going strong
now. 

I'm just wondering (not related to this issue really), is Java interface the best 'policy'
document one can get for the purpose of the server-side processing or not...

> 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é
>            Assignee: Sergey Beryozkin
>             Fix For: 3.1.0
>
>
> 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.3.4#6332)

Mime
View raw message