Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
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
Use a tFixedFlowInput with null values.
Hi, tREST does not have this variable. Use tRESTClient instead.
((java.util.Map<String,java.util.List<String>>)globalMap.get("tRESTClient_1_HEADERS"))
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.
Thanks
Use a tFixedFlowInput with null values.
Yes thanks that's ok but it would be better if we could get the headers from a tRest...
Thanks