You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "anish.somadevan" <ne...@gmail.com> on 2015/08/09 23:52:03 UTC

Construct Dynamic URI

Am trying to construct a dynamic URI using a value from header

When i use in <to uri> it is not recognizing the value as a header

<to uri=&quot;https://something.com/{$header.Provider}

but when i use &lt;toD uri> i don't get any error, but the HTTP call is not
being made.

<toD uri="https://something.com{header.Provier}

Am using Camel 10.2.3 jar due to some compatibility issues with my
application. Is there a way i can construct dynamic URI and make HTTP calls?

Please let me know if this is possible.

Thanks,
Anish



--
View this message in context: http://camel.465427.n5.nabble.com/Construct-Dynamic-URI-tp5770500.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Construct Dynamic URI

Posted by Claus Ibsen <cl...@gmail.com>.
See this FAQ
http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html

On Sun, Aug 9, 2015 at 11:52 PM, anish.somadevan <ne...@gmail.com> wrote:
> Am trying to construct a dynamic URI using a value from header
>
> When i use in <to uri> it is not recognizing the value as a header
>
> <to uri=&quot;https://something.com/{$header.Provider}
>
> but when i use &lt;toD uri> i don't get any error, but the HTTP call is not
> being made.
>
> <toD uri="https://something.com{header.Provier}
>
> Am using Camel 10.2.3 jar due to some compatibility issues with my
> application. Is there a way i can construct dynamic URI and make HTTP calls?
>
> Please let me know if this is possible.
>
> Thanks,
> Anish
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Construct-Dynamic-URI-tp5770500.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



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

Re: Construct Dynamic URI

Posted by "anish.somadevan" <ne...@gmail.com>.
Worked like a charm.

Thanks a lot :)



--
View this message in context: http://camel.465427.n5.nabble.com/Construct-Dynamic-URI-tp5770500p5770533.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Construct Dynamic URI

Posted by Raul Kripalani <ra...@evosent.com>.
Yes, it's possible. But the to EIP is not dynamic. You need to use
<recipientList /> instead.

*Raúl Kripalani*
Apache Camel PMC Member & Committer | Enterprise Architect, Open Source
Integration specialist
http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
http://blog.raulkr.net | twitter: @raulvk

On Sun, Aug 9, 2015 at 10:52 PM, anish.somadevan <ne...@gmail.com> wrote:

> Am trying to construct a dynamic URI using a value from header
>
> When i use in <to uri> it is not recognizing the value as a header
>
> <to uri=&quot;https://something.com/{$header.Provider}
>
> but when i use &lt;toD uri> i don't get any error, but the HTTP call is not
> being made.
>
> <toD uri="https://something.com{header.Provier}
>
> Am using Camel 10.2.3 jar due to some compatibility issues with my
> application. Is there a way i can construct dynamic URI and make HTTP
> calls?
>
> Please let me know if this is possible.
>
> Thanks,
> Anish
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Construct-Dynamic-URI-tp5770500.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>