<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic [resolved] How to pass tJava output as header data to tRest client component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-tJava-output-as-header-data-to-tRest-client/m-p/2289706#M63059</link>
    <description>&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;&amp;nbsp;am creating a Job to set cookie value for tRestClient component.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;To acheive this task i wrote a Java code in tJava component and i am able to extract cookie data with this Java code. Now i want to pass this data to tRestClient component.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;Please suggest a way to resolve pass the cookie data.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;More details:&lt;/B&gt;&amp;nbsp;Below is the expected talend job structure
&lt;BR /&gt;
&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;tJava -&amp;gt; tRestClient&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
    <pubDate>Sat, 16 Nov 2024 10:00:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T10:00:33Z</dc:date>
    <item>
      <title>[resolved] How to pass tJava output as header data to tRest client component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-tJava-output-as-header-data-to-tRest-client/m-p/2289706#M63059</link>
      <description>&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;&amp;nbsp;am creating a Job to set cookie value for tRestClient component.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;To acheive this task i wrote a Java code in tJava component and i am able to extract cookie data with this Java code. Now i want to pass this data to tRestClient component.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;Please suggest a way to resolve pass the cookie data.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;More details:&lt;/B&gt;&amp;nbsp;Below is the expected talend job structure
&lt;BR /&gt;
&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;tJava -&amp;gt; tRestClient&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-tJava-output-as-header-data-to-tRest-client/m-p/2289706#M63059</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to pass tJava output as header data to tRest client component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-tJava-output-as-header-data-to-tRest-client/m-p/2289707#M63060</link>
      <description>Hi&amp;nbsp; 
&lt;BR /&gt;You can store the cookie value to a context variable or global variable for used on tRestClient. eg: 
&lt;BR /&gt; 
&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tJava -&amp;gt;oncomponentok--&amp;gt; tRestClient&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt;on tJava: 
&lt;BR /&gt;... 
&lt;BR /&gt;String cookie=your java code; 
&lt;BR /&gt;globalMap.put("cookie",cookie); 
&lt;BR /&gt;on tRestClient, you can get the cookie value with this expression: 
&lt;BR /&gt;(String)globalMap.get("cookie") 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 10 Mar 2017 09:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-tJava-output-as-header-data-to-tRest-client/m-p/2289707#M63060</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-10T09:20:13Z</dc:date>
    </item>
  </channel>
</rss>

