You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2014/05/02 13:15:16 UTC

[jira] [Created] (CAMEL-7408) Customize the way CXRS bindings set responses

Sergey Beryozkin created CAMEL-7408:
---------------------------------------

             Summary: Customize the way CXRS bindings set responses
                 Key: CAMEL-7408
                 URL: https://issues.apache.org/jira/browse/CAMEL-7408
             Project: Camel
          Issue Type: Improvement
          Components: camel-cxf
            Reporter: Sergey Beryozkin
            Priority: Minor


CXFRS producer sets Response on the exchange which is not understood by the follow up Camel data reader components.

Proposal: introduce an option called "unwrapResponse", it will affect the process as follows:
- If it is a CXF WebClient call then we will have Response.readEntity(InputStream.class) set on the exchange. 
- If it is a CXF proxy call then we will have Response.readEntity(method.getReturnType()) set on the exchange. 




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