Its better to provide dynamic query parameters as a
Exchange.HTTP_QUERY header then you reuse same endpoint.

So you can set a HTTP_QUERY header with the value clientId=xxxx where
xxx is the client id you want, which you can get from an exchange
property.

.setHeader(Exchange.HTTP_QUERY, simple("${exchangeProperty.clientId}"))

You can find more about that header here: http://camel.apache.org/http

On Tue, Oct 18, 2016 at 8:25 PM, ValeryN <novikov.val...@gmail.com> wrote:
> Hello,
>
> Could you please give an example how to use a new serviceCall with dynamic
> URI parameter?
> Ideally from ${exchangeProperty.MY_PROPERTY}
>
> Wanna do something like that -
> serviceCall("http://my-service/api/v1/service?clientId=${exchangeProperty.clientId}";)
> Using serviceCall because it supports Consul service discovery
>
> Thank you!
>
> Val
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/serviceCall-with-exchangeProperty-in-URI-tp5788921.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to