[
https://issues.apache.org/jira/browse/CAMEL-7196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13900545#comment-13900545
]
Raul Kripalani commented on CAMEL-7196:
---------------------------------------
[~amarkevich] – as I said above, use the Simple Consumer Binding Style (link to
documentation above).
If you add this option to the consumer URL: {{bindingStyle=SimpleConsumer}},
your query parameters get mapped as Camel headers.
With this consumer URL:
{code}
from("cxfrs://http://127.0.0.1:8088?resourceClasses=org.apache.camel.bug.Service&bindingStyle=SimpleConsumer")
{code}
I get the following log statement.:
{code}
[0694806-15] bug INFO Exchange[ExchangePattern:
InOut, BodyType: org.apache.cxf.message.MessageContentsList, Body: value1]
{..., param2=value2, ..., CamelHttpQuery=param1=value1¶m2=value2, ...,
param1=value1, ...}
{code}
As you can see, the headers are there.
Regards,
Raúl.
> [cxfrs] Consumer don't set exchange header from query (like camel-jetty does)
> -----------------------------------------------------------------------------
>
> Key: CAMEL-7196
> URL: https://issues.apache.org/jira/browse/CAMEL-7196
> Project: Camel
> Issue Type: Bug
> Components: camel-cxf
> Affects Versions: 2.12.2
> Reporter: Alexey Markevich
> Attachments: CxfRsConsumerTest.java, camel-7196.zip
>
>
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)