Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Talend ESB: cREST component: dynamic endpoint

Hi,

 

I am on Talend enterprise edition. I am using a cREST client.  I want to use a header value and a context variable to calculate the endpoint url. i.e In the endpoint textbox I want use something like this 

"${header.instance_url}" + context.sfdc_sales_order_endpoint+"/" 

 

Can someone provide an example on how I could achieve this?

So far I am able to use context variables, but not headers. I tried simple expression but it isn't getting resolved. 

 

Thanks,

Sowjanya

 

 

 

Thanks,

Sowjanya.

 

 

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

1-A solution could be adding a cProcess before your cRest component:

0683p000009Lr7i.png

This address will override the one of your component.

 

Or you can add a cSetHeader before your cRest component (You will have to add a cConfig with this import instruction "import org.apache.camel.Exchange;"):

 0683p000009Lrsa.png

2-Another solution could be using a dynamic computed Endpoint (With DSL toD instruction. See http://camel.apache.org/message-endpoint.html). You can have a look at this post:
https://community.talend.com/t5/Design-and-Development/Talend-ESB-cREST-component-dynamic-endpoint/t...

 

Eric

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi,

1-A solution could be adding a cProcess before your cRest component:

0683p000009Lr7i.png

This address will override the one of your component.

 

Or you can add a cSetHeader before your cRest component (You will have to add a cConfig with this import instruction "import org.apache.camel.Exchange;"):

 0683p000009Lrsa.png

2-Another solution could be using a dynamic computed Endpoint (With DSL toD instruction. See http://camel.apache.org/message-endpoint.html). You can have a look at this post:
https://community.talend.com/t5/Design-and-Development/Talend-ESB-cREST-component-dynamic-endpoint/t...

 

Eric

Anonymous
Not applicable
Author

worked. Thank you.