You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2014/02/14 10:41:19 UTC

[jira] [Commented] (CAMEL-7199) [cxfrs] Consumer can't process CxfPayload from cxf producer

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

Willem Jiang commented on CAMEL-7199:
-------------------------------------

Hi Alexey,

"No message body writer has been found for response class CxfPayload" is the warning of JAXRSOutInterceptor, as it doesn't know anything about the CxfPayload Message which is only used by camel-cxf (which deal with the soap message).

I just checked the test case, you need to turn the response of cxf which body is CxfPayload to the object which CXFRS can understand, then cxfrs consumer can return the response to the client.
{code}
from(cxfrs consumer).setBody().to(cxf producer).convertBodyTo(String.class);
{code}

Regards,

Willem

> [cxfrs] Consumer can't process CxfPayload from cxf producer
> -----------------------------------------------------------
>
>                 Key: CAMEL-7199
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7199
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.12.2
>            Reporter: Alexey Markevich
>            Assignee: Willem Jiang
>         Attachments: camel-cxf-payload.zip
>
>
> I'm trying to migrate existing route from camel-jetty to camel-cxf.
> Route: from(cxfrs consumer).setBody().to(cxf producer)
>  failed with "No message body writer has been found for response class CxfPayload"
> and convertBodyTo required.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)