<?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 tRESTClient POST request in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRESTClient-POST-request/m-p/2332404#M101289</link>
    <description>&lt;P&gt;Hi people,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I deleted my first thread, as it seems the way I described my problem was a bit confusing. So I decided to keep it simple this time and focus on the core of my problem.&lt;/P&gt;&lt;P&gt;I want to call the Commerzbank API with a POST request that parses the Login Name and PIN of the bank customer:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Dt4WSAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132287i3270EDAB45755912/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Dt4WSAAZ.png" alt="0695b00000Dt4WSAAZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My current approach is to a tRESTClient component, with the URL of the endpoint of the login and a JSON file as input schema, that contains username and PIN. The JSON looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Dt4UvAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154466i10ECB08359B4B0BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Dt4UvAAJ.png" alt="0695b00000Dt4UvAAJ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I took "username" and "password" from the name of the input forms of the login page, is that the right thing to do? &lt;/P&gt;&lt;P&gt;My tRESTClient looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Dt4WmAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155492iB7C63EA74E094F89/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Dt4WmAAJ.png" alt="0695b00000Dt4WmAAJ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, when I run the job, I am getting an "HTTP 400 Bad Request". Does my JSON need to have a certain format (right now it is a string)? The JSON tree inside the tWriteJSON component looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Dt4XkAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149943i3520ECBA0E6E9DBD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Dt4XkAAJ.png" alt="0695b00000Dt4XkAAJ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The schema looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Dt4Y9AAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132367i206F91035936602A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Dt4Y9AAJ.png" alt="0695b00000Dt4Y9AAJ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance, every hint is greatly appreciated!&lt;/P&gt;&lt;P&gt;Mopi&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:23:49 GMT</pubDate>
    <dc:creator>Mopi</dc:creator>
    <dc:date>2024-11-16T00:23:49Z</dc:date>
    <item>
      <title>tRESTClient POST request</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRESTClient-POST-request/m-p/2332404#M101289</link>
      <description>&lt;P&gt;Hi people,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I deleted my first thread, as it seems the way I described my problem was a bit confusing. So I decided to keep it simple this time and focus on the core of my problem.&lt;/P&gt;&lt;P&gt;I want to call the Commerzbank API with a POST request that parses the Login Name and PIN of the bank customer:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Dt4WSAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132287i3270EDAB45755912/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Dt4WSAAZ.png" alt="0695b00000Dt4WSAAZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My current approach is to a tRESTClient component, with the URL of the endpoint of the login and a JSON file as input schema, that contains username and PIN. The JSON looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Dt4UvAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154466i10ECB08359B4B0BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Dt4UvAAJ.png" alt="0695b00000Dt4UvAAJ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I took "username" and "password" from the name of the input forms of the login page, is that the right thing to do? &lt;/P&gt;&lt;P&gt;My tRESTClient looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Dt4WmAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155492iB7C63EA74E094F89/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Dt4WmAAJ.png" alt="0695b00000Dt4WmAAJ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, when I run the job, I am getting an "HTTP 400 Bad Request". Does my JSON need to have a certain format (right now it is a string)? The JSON tree inside the tWriteJSON component looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Dt4XkAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149943i3520ECBA0E6E9DBD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Dt4XkAAJ.png" alt="0695b00000Dt4XkAAJ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The schema looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Dt4Y9AAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132367i206F91035936602A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Dt4Y9AAJ.png" alt="0695b00000Dt4Y9AAJ.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance, every hint is greatly appreciated!&lt;/P&gt;&lt;P&gt;Mopi&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRESTClient-POST-request/m-p/2332404#M101289</guid>
      <dc:creator>Mopi</dc:creator>
      <dc:date>2024-11-16T00:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: tRESTClient POST request</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRESTClient-POST-request/m-p/2332405#M101290</link>
      <description>&lt;P&gt;Hello @Moritz Opitz​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that Talend APIs use standard HTTP status codes to indicate the status of a response. Error "400: Bad request" means The request is not valid or the wrong parameter format was used in your request. The request had bad syntax or was inherently impossible to be satisfied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Cloud API's Error handling:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           https://help.talend.com/r/vQuyKbfUusdSpNfjXGRM1Q/p~5Ke3hkzNB642ZLevy7Kg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;tRestClient components and its scenario's: https://help.talend.com/r/7NvFnkWpbH8Gy3Rm6mUXnw/V4DayMUD1TrO522ClO0fBw&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vaishnavi&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 17:45:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRESTClient-POST-request/m-p/2332405#M101290</guid>
      <dc:creator>prg</dc:creator>
      <dc:date>2021-03-22T17:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: tRESTClient POST request</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRESTClient-POST-request/m-p/2332406#M101291</link>
      <description>&lt;P&gt;Hi Vaishnavi,&lt;/P&gt;&lt;P&gt;thank you for the response. I went trough both your links. From what I see in the TRESTClient docu, a simple GET call with Auhorization type "Basic HTTP" should do the job. After all, this is all I want to accomplish:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Dt721AAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155245i83A7EF6D60094116/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Dt721AAB.png" alt="0695b00000Dt721AAB.png" /&gt;&lt;/span&gt;However, when I call the URL described on the picture along with the customer credentials, all I get as a response is an HTML of the login page.&lt;/P&gt;&lt;P&gt;Very weird....&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 19:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRESTClient-POST-request/m-p/2332406#M101291</guid>
      <dc:creator>Mopi</dc:creator>
      <dc:date>2021-03-22T19:38:59Z</dc:date>
    </item>
  </channel>
</rss>

