<?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: JSON Body for POST Method in tFileFetch Component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/JSON-Body-for-POST-Method-in-tFileFetch-Component/m-p/2366824#M130265</link>
    <description>&lt;P&gt;Why are you using tFileFetch to access the first web service?&amp;nbsp; Are you downloading a file, uploading a file, or both?&amp;nbsp; You can't specify the whole body of a POST request in tFileFetch as a string of JSON or otherwise.&amp;nbsp; The only time I am POSTing to a tFileFetch with JSON is when I am uploading a file and other parameters are needed.&amp;nbsp; I can use key/value parameters with a Content-type of &lt;SPAN&gt;application/x-www-form-urlencoded&amp;nbsp;&lt;/SPAN&gt;and this particular web service accepts them.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Are you sure you are putting your authentication credentials in the correct place in tFileFetch?&amp;nbsp; They could go in the 'Headers' section or the 'Advanced settings -&amp;gt; need authorization' section.&amp;nbsp; A 400 error is a bad request, most web services will return a 401 if authentication or authorization failed.&amp;nbsp; Make sure that you can access your web service outside of Talend in another environment such as Postman.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you are not downloading or uploading files then consider using a tRestClient where you can specify the JSON body in the 'string' variable.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2019 23:39:10 GMT</pubDate>
    <dc:creator>nfz11</dc:creator>
    <dc:date>2019-06-12T23:39:10Z</dc:date>
    <item>
      <title>JSON Body for POST Method in tFileFetch Component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-Body-for-POST-Method-in-tFileFetch-Component/m-p/2366823#M130264</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've been looking for an answer but the 2 topics I found had no solution.&lt;/P&gt; 
&lt;P&gt;So here is the problem :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to get a cookie session (with the tFileFetch comp.) from a web service to use it (the cookie session id) in a tRest component. The thing is there is no "Body HTTP" in the tFileFetch component where I could write my JSON, and when I use the parameter to write login and password I get an 400 error bad request, I really need to put my json into a Body http.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:36:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-Body-for-POST-Method-in-tFileFetch-Component/m-p/2366823#M130264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Body for POST Method in tFileFetch Component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-Body-for-POST-Method-in-tFileFetch-Component/m-p/2366824#M130265</link>
      <description>&lt;P&gt;Why are you using tFileFetch to access the first web service?&amp;nbsp; Are you downloading a file, uploading a file, or both?&amp;nbsp; You can't specify the whole body of a POST request in tFileFetch as a string of JSON or otherwise.&amp;nbsp; The only time I am POSTing to a tFileFetch with JSON is when I am uploading a file and other parameters are needed.&amp;nbsp; I can use key/value parameters with a Content-type of &lt;SPAN&gt;application/x-www-form-urlencoded&amp;nbsp;&lt;/SPAN&gt;and this particular web service accepts them.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Are you sure you are putting your authentication credentials in the correct place in tFileFetch?&amp;nbsp; They could go in the 'Headers' section or the 'Advanced settings -&amp;gt; need authorization' section.&amp;nbsp; A 400 error is a bad request, most web services will return a 401 if authentication or authorization failed.&amp;nbsp; Make sure that you can access your web service outside of Talend in another environment such as Postman.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you are not downloading or uploading files then consider using a tRestClient where you can specify the JSON body in the 'string' variable.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 23:39:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-Body-for-POST-Method-in-tFileFetch-Component/m-p/2366824#M130265</guid>
      <dc:creator>nfz11</dc:creator>
      <dc:date>2019-06-12T23:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Body for POST Method in tFileFetch Component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-Body-for-POST-Method-in-tFileFetch-Component/m-p/2366825#M130266</link>
      <description>&lt;P&gt;Yes I can access to it in postman, and what I wanted to say, I need to GET what's call in postman in the "temporary header" -&amp;gt; JSESSIONID, which is temporary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I need to put a JSON in the body with a POST method. I can't use the need authorization section because I have other field to put in the body.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The main problem is how to get the cookie (JSESSIONID) when I need to put a string of JSON in the body to use my Web Service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry my english is not very well, I hope you'll understand everything clearly, thanks&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 08:24:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-Body-for-POST-Method-in-tFileFetch-Component/m-p/2366825#M130266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-13T08:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Body for POST Method in tFileFetch Component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-Body-for-POST-Method-in-tFileFetch-Component/m-p/2366826#M130267</link>
      <description>&lt;P&gt;I found out a solution, thanks a lot for your help, I finally used a tJavaRow (tMap work also) -&amp;gt; tRestClient -&amp;gt; and used&amp;nbsp;((java.util.Map&amp;lt;String,java.util.List&amp;lt;String&amp;gt;&amp;gt;)globalMap.get("tRESTClient_1_HEADERS")).get("Set-Cookie").get(0).toString() in the second tRest once I'm connected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 15:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-Body-for-POST-Method-in-tFileFetch-Component/m-p/2366826#M130267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-13T15:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Body for POST Method in tFileFetch Component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-Body-for-POST-Method-in-tFileFetch-Component/m-p/2366827#M130268</link>
      <description>&lt;P&gt;Great, I am glad you figured it out.&amp;nbsp; Please select one or more answers as solutions so this topic gets marked as solved.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 21:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-Body-for-POST-Method-in-tFileFetch-Component/m-p/2366827#M130268</guid>
      <dc:creator>nfz11</dc:creator>
      <dc:date>2019-06-13T21:32:38Z</dc:date>
    </item>
  </channel>
</rss>

