I need to access to my response header with tRest component, not the tRestClient.
I use ((java.util.Map<String,java.util.List<String>>)globalMap.get("tREST_1_HEADERS")).get("Set-Cookie").get(0).toString()
But I have a result of NullPointerException..
Maybe you'll have a solution for me, thanks
Solved! Go to Solution.
Hi, tREST does not have this variable. Use tRESTClient instead.
Hope it helps.
Yes I know but when I use tRestClient, the problem is I need to input JSON in the body, so I use a tJavaRow or a tMap to output throught the tRestClient BUT tJavaRow or tMap need an input (an entry) too, and I do not have anything to put in entry because my JSON is generated with context data.
So for the moment I have put a tFileInputDelimited with a input.txt before the tJavaRow without anything inside it, but it's not pretty... Do you have a solution, I hope you'll understand my problem.
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema
Pick up some tips and tricks with Context Variables