<?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 Get and POST do not work in tRESTRequest in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Get-and-POST-do-not-work-in-tRESTRequest/m-p/2334692#M103333</link>
    <description>I am trying to create a webservice to create new users and to list user details
&lt;BR /&gt;
&lt;BR /&gt;a. POST --&amp;gt; &lt;A href="http://localhost:8088/users" target="_blank"&gt;http://localhost:8088/users&lt;/A&gt;
&lt;BR /&gt;This creates a new user
&lt;BR /&gt;b. GET --&amp;gt; &lt;A href="http://localhost:8088/users/{id}/" target="_blank"&gt;http://localhost:8088/users/{id}/&lt;/A&gt;
&lt;BR /&gt;This fetches the user details from DB and sends a JSON object
&lt;BR /&gt;
&lt;BR /&gt;in tRestRequest, I have first service a (POST), followed by service b (GET).
&lt;BR /&gt;
&lt;BR /&gt;the USER creation (service a) works perfectly fine. When I try to do Sevice b (GET), it gives an error:
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;Exception in component tRESTResponse_7&lt;BR /&gt;java.lang.RuntimeException: Rest response already sent.&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;
&lt;BR /&gt;I see that the "service a" is also executed and creates a user (I know, blank details, no validations added)... and the second service fails.
&lt;BR /&gt;
&lt;BR /&gt;What am I doing wrong here?</description>
    <pubDate>Sat, 16 Nov 2024 10:25:08 GMT</pubDate>
    <dc:creator>root</dc:creator>
    <dc:date>2024-11-16T10:25:08Z</dc:date>
    <item>
      <title>Get and POST do not work in tRESTRequest</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-and-POST-do-not-work-in-tRESTRequest/m-p/2334692#M103333</link>
      <description>I am trying to create a webservice to create new users and to list user details
&lt;BR /&gt;
&lt;BR /&gt;a. POST --&amp;gt; &lt;A href="http://localhost:8088/users" target="_blank"&gt;http://localhost:8088/users&lt;/A&gt;
&lt;BR /&gt;This creates a new user
&lt;BR /&gt;b. GET --&amp;gt; &lt;A href="http://localhost:8088/users/{id}/" target="_blank"&gt;http://localhost:8088/users/{id}/&lt;/A&gt;
&lt;BR /&gt;This fetches the user details from DB and sends a JSON object
&lt;BR /&gt;
&lt;BR /&gt;in tRestRequest, I have first service a (POST), followed by service b (GET).
&lt;BR /&gt;
&lt;BR /&gt;the USER creation (service a) works perfectly fine. When I try to do Sevice b (GET), it gives an error:
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;Exception in component tRESTResponse_7&lt;BR /&gt;java.lang.RuntimeException: Rest response already sent.&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;
&lt;BR /&gt;I see that the "service a" is also executed and creates a user (I know, blank details, no validations added)... and the second service fails.
&lt;BR /&gt;
&lt;BR /&gt;What am I doing wrong here?</description>
      <pubDate>Sat, 16 Nov 2024 10:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-and-POST-do-not-work-in-tRESTRequest/m-p/2334692#M103333</guid>
      <dc:creator>root</dc:creator>
      <dc:date>2024-11-16T10:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get and POST do not work in tRESTRequest</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-and-POST-do-not-work-in-tRESTRequest/m-p/2334693#M103334</link>
      <description>Hi&amp;nbsp; 
&lt;BR /&gt;Take a look at this related 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCoxwCAC" target="_blank"&gt;topic&lt;/A&gt;, I think it must generate multiple records to tRestResponse. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 05 Sep 2016 05:44:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-and-POST-do-not-work-in-tRESTRequest/m-p/2334693#M103334</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-05T05:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get and POST do not work in tRESTRequest</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-and-POST-do-not-work-in-tRESTRequest/m-p/2334694#M103335</link>
      <description>Are you trying to do it from within a single flow inside a job ? This error message would typically be displayed if a job tried to send some extra response data after the endpoint has already processed the first and only possible (by default) response. To support multiple responses for a single flow one needs to enable&amp;nbsp; 'streaming' for the current flow in a tRESTRequest URL table
&lt;BR /&gt;Sergey</description>
      <pubDate>Mon, 05 Sep 2016 14:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-and-POST-do-not-work-in-tRESTRequest/m-p/2334694#M103335</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-05T14:34:39Z</dc:date>
    </item>
  </channel>
</rss>

