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

Varun commented on CAMEL-9123:
------------------------------

{code}
<cxf:rsServer id="rsCDSServer" address="/rest/v1"
                serviceClass="com.service.ServerServiceImpl" 
loggingFeatureEnabled="true"
                loggingSizeLimit="20">
                <cxf:providers>
                        <bean id="sadsad" 
class="com.example.aaa.provider.XMLProvider">
                        </bean>
                </cxf:providers>
        </cxf:rsServer>

        <cxf:rsClient id="rsCDSClient"
                address="http://localhost:9090/sample-rest-svc/sampleservices";
                serviceClass="com.service.ClientServiceImpl" 
loggingFeatureEnabled="true">
        <cxf:providers>
                        <bean id="ss" 
class="com.example.aaa.provider.XMLProvider">
                        </bean>
                </cxf:providers>
        </cxf:rsClient>


        <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring";>

                <route>
                        <from 
uri="cxfrs://bean://rsCDSServer?bindingStyle=SimpleConsumer" />
                        <setHeader headerName="CamelCxfRsUsingHttpAPI">
                                <constant>True</constant>
                        </setHeader>
                        <to uri="cxfrs://bean://rsCDSClient" />
                </route>
        </camelContext>
{code}

> Camel is not invoking JAX-RS Client (jax-rs) providers" readFrom" method 
> while returing the response back to the CXF server
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-9123
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9123
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxfrs
>    Affects Versions: 2.15.3
>            Reporter: Varun
>
> I have a CXF JAX-RS server talking to a CXF JAX-rs client in my camel route, 
> The RS client inturn talks to REST API, both the server and client have been 
> configured with custom JAX-RS providers to perform custom 
> deserlization/serilizations. The JAX-RS server "readFrom" method is invoked 
> followed by the clients "writeTo" which perfroms the  REST API call once the 
> API rerurns the response , camel is not invoking CXF client providers 
> readFrom/isReadable method, rather  its directly calling JAX-RS servers 
> writeTO method where the Object is coming as LoadedByteArray instead of the 
> actual Java POJO.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to