<?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: tRestRequest --&amp;gt; tRestClient (how to manage responses) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRestRequest-gt-tRestClient-how-to-manage-responses/m-p/2206364#M6452</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is a snapshot of how this looks.If you see, the response is separate based the error/ success.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the tRunIf conditions checks the&amp;nbsp;errorCode (for Error Flow)/&amp;nbsp;statusCode (for Response Flow).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So, how can I make sure that ONLY correct flow is invoked based on the tRestClient... Hope that helps. Thanks&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="talend_rest_client_service_flow.PNG" style="width: 947px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Iv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129881i4C424411BCFCDB19/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Iv.png" alt="0683p000009M9Iv.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Apr 2020 14:39:30 GMT</pubDate>
    <dc:creator>root</dc:creator>
    <dc:date>2020-04-16T14:39:30Z</dc:date>
    <item>
      <title>tRestRequest --&gt; tRestClient (how to manage responses)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestRequest-gt-tRestClient-how-to-manage-responses/m-p/2206362#M6450</link>
      <description>&lt;P&gt;Hello all, hope everyone is safe!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my webservice (with tRestRequest), based on the inputs, I need to make a http call via tRestClient. The response (success/ failure) needs to be interpreted and my webservice needs to send a response back to the client... Something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tRestRequest --&amp;gt; Business logic --&amp;gt; tRestClient --&amp;gt; Response flow --&amp;gt; do something --&amp;gt; Send response (tRestResponse)&lt;BR /&gt;Error Flow --&amp;gt; do something --&amp;gt; Send response (tRestResponse)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As of this time, if the tRestClient returns a success, I see an error on the Karaf logs about some null pointer (reading the Error flow response code) and service responds back with a HTTP 500 Internal Server Error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whats the best way to handle this seamlessly?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:40:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestRequest-gt-tRestClient-how-to-manage-responses/m-p/2206362#M6450</guid>
      <dc:creator>root</dc:creator>
      <dc:date>2024-11-16T02:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: tRestRequest --&gt; tRestClient (how to manage responses)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestRequest-gt-tRestClient-how-to-manage-responses/m-p/2206363#M6451</link>
      <description>How is the error flow connected to the main flow?&lt;BR /&gt;Verify you're not trying to send 2 responses.</description>
      <pubDate>Wed, 15 Apr 2020 21:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestRequest-gt-tRestClient-how-to-manage-responses/m-p/2206363#M6451</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-04-15T21:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: tRestRequest --&gt; tRestClient (how to manage responses)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestRequest-gt-tRestClient-how-to-manage-responses/m-p/2206364#M6452</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is a snapshot of how this looks.If you see, the response is separate based the error/ success.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the tRunIf conditions checks the&amp;nbsp;errorCode (for Error Flow)/&amp;nbsp;statusCode (for Response Flow).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So, how can I make sure that ONLY correct flow is invoked based on the tRestClient... Hope that helps. Thanks&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="talend_rest_client_service_flow.PNG" style="width: 947px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Iv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129881i4C424411BCFCDB19/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Iv.png" alt="0683p000009M9Iv.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 14:39:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestRequest-gt-tRestClient-how-to-manage-responses/m-p/2206364#M6452</guid>
      <dc:creator>root</dc:creator>
      <dc:date>2020-04-16T14:39:30Z</dc:date>
    </item>
  </channel>
</rss>

