Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
Hi,
1-A solution could be adding a cProcess before your cRest component:
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;"):
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
Hi,
1-A solution could be adding a cProcess before your cRest component:
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;"):
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
worked. Thank you.