<?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 Re: tRestClient post JSON body in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-post-JSON-body/m-p/2329890#M99032</link>
    <description>&lt;P&gt;It's ok. I just forgot to change the content-type. I close the topic.&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2019 08:49:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-24T08:49:39Z</dc:date>
    <item>
      <title>tRestClient post JSON body</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-post-JSON-body/m-p/2329885#M99027</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is my job :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="job.PNG" style="width: 488px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4RO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135125i799478B54E754F4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4RO.png" alt="0683p000009M4RO.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I want to send a post request with a json body. I'm getting the json from a raw file. Here is my tMap :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tmap.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M45V.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132683i5E06D2D211A819DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M45V.png" alt="0683p000009M45V.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I saw that for a json it was the string field of the trestclient that was used.&lt;/P&gt; 
&lt;P&gt;But i don't understand, i still get nothing in the output body of tRestClient.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;If you need more information, just ask, i'll do my best to answer.&lt;/P&gt; 
&lt;P&gt;Thank you.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 14:43:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-post-JSON-body/m-p/2329885#M99027</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-23T14:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient post JSON body</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-post-JSON-body/m-p/2329886#M99028</link>
      <description>&lt;P&gt;Use &lt;A href="https://help.talend.com/reader/iYcvdknuprDzYycT3WRU8w/_N82Hv0ivAnxD69EWaC5rA" target="_self" rel="nofollow noopener noreferrer"&gt;tRest&lt;/A&gt; to include a POST body. You can just pass the row object into that body text field and it will pass it through.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 15:41:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-post-JSON-body/m-p/2329886#M99028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-23T15:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient post JSON body</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-post-JSON-body/m-p/2329887#M99029</link>
      <description>&lt;P&gt;Thank you it's way more simple indeed.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Unfortunately, i still have an empty body response.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is my request body :&lt;/P&gt; 
&lt;P&gt;{&lt;BR /&gt;"request": "1",&lt;BR /&gt;"io_mode": "json",&lt;BR /&gt;"do_in": [&lt;BR /&gt;"{\"method\":\"Infos.getInfos\"",&lt;BR /&gt;"\"params\":[]}"&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt; 
&lt;P&gt;He's the syntax good ? It's maybe because of that.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 15:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-post-JSON-body/m-p/2329887#M99029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-23T15:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient post JSON body</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-post-JSON-body/m-p/2329888#M99030</link>
      <description>&lt;P&gt;Have you made this request successfully in something other than Talend (e.g. Postman)? I usually try it there first to see of my syntax is correct.&amp;nbsp; Also, wouldn't hurt escaping all your double quotes.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 15:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-post-JSON-body/m-p/2329888#M99030</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-23T15:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient post JSON body</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-post-JSON-body/m-p/2329889#M99031</link>
      <description>&lt;P&gt;In JSON it was not working so i tried another format :&lt;/P&gt; 
&lt;P&gt;request=1&amp;amp;io_mode=json&amp;amp;do_in={"method":"Infos.getInfos","params":[]}&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I wrote this in my tRest :&lt;/P&gt; 
&lt;P&gt;"request=1&amp;amp;io_mode=json&amp;amp;do_in={\"method\":\"Infos.getInfos\",\"params\":[]}"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As you can see i escaped all my double quotes.&lt;/P&gt; 
&lt;P&gt;But it's still not working.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 16:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-post-JSON-body/m-p/2329889#M99031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-23T16:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient post JSON body</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-post-JSON-body/m-p/2329890#M99032</link>
      <description>&lt;P&gt;It's ok. I just forgot to change the content-type. I close the topic.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 08:49:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-post-JSON-body/m-p/2329890#M99032</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-24T08:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient post JSON body</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-post-JSON-body/m-p/2329891#M99033</link>
      <description>&lt;P&gt;I know this was resolved but i am just adding for when someone has issues with this again.  If you have your JSON already in a file then this is for you, but if you don't i suggest this post --&amp;gt;&lt;A href="https://community.talend.com/s/feed/0D73p000004sQALCA2" alt="https://community.talend.com/s/feed/0D73p000004sQALCA2" target="_blank"&gt; https://community.talend.com/s/feed/0D73p000004sQALCA2 &lt;/A&gt;(for tRestClient).&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;How:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I get the JSON from tFileInputRaw as an Object in a column called "content"(default fot this component). &lt;/LI&gt;&lt;LI&gt;I convert it to string in the tmap.(just like above original post)&lt;/LI&gt;&lt;LI&gt;Then I map the content column to the string column in the tRestClient and not the body, for some reason its not via the body.&lt;/LI&gt;&lt;LI&gt;Then i log the output and the error.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If everything is good it should work.&lt;/P&gt;&lt;P&gt;​&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000huSADAA2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142678i1512889E20BD9BFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000huSADAA2.png" alt="0695b00000huSADAA2.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Hope this helps someone.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Vader Out &lt;span class="lia-unicode-emoji" title=":flexed_biceps:"&gt;💪&lt;/span&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 07:57:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-post-JSON-body/m-p/2329891#M99033</guid>
      <dc:creator>Lord-Vader</dc:creator>
      <dc:date>2023-06-13T07:57:31Z</dc:date>
    </item>
  </channel>
</rss>

