<?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 cCXFRS: HTTP Response code in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/cCXFRS-HTTP-Response-code/m-p/2371095#M134069</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can we handle the HTTP Response Code in a webservice with cXFRS component (Mediation route) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 09:12:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T09:12:40Z</dc:date>
    <item>
      <title>cCXFRS: HTTP Response code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cCXFRS-HTTP-Response-code/m-p/2371095#M134069</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can we handle the HTTP Response Code in a webservice with cXFRS component (Mediation route) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cCXFRS-HTTP-Response-code/m-p/2371095#M134069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: cCXFRS: HTTP Response code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cCXFRS-HTTP-Response-code/m-p/2371096#M134070</link>
      <description>&lt;P&gt;Hi Eric&lt;/P&gt; 
&lt;P&gt;I guess you can get it in the seeded Camel headers in the next component after your CXFRS.&lt;/P&gt; 
&lt;P&gt;I can't remember which one exactly but just use a Cprocessor to loop on exchange.getIn().getHeaders() and print their names/values&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 15:47:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cCXFRS-HTTP-Response-code/m-p/2371096#M134070</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2017-10-06T15:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: cCXFRS: HTTP Response code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cCXFRS-HTTP-Response-code/m-p/2371097#M134071</link>
      <description>&lt;P&gt;Hi Loko,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But that doesn't answer my question. I will rephrase my question with an example:&lt;/P&gt;
&lt;P&gt;I have a webservice (Server). I receive an incoming request, I process it in my route and for any reason consider there is something wrong. I want to send back an HTTP code 202. How can I do that ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to update&amp;nbsp;HTTP_RESPONSE_CODE (See&amp;nbsp;&lt;A href="http://camel.apache.org/cxfrs.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://camel.apache.org/cxfrs.html&lt;/A&gt;). But it doesn't work...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 16:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cCXFRS-HTTP-Response-code/m-p/2371097#M134071</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-06T16:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: cCXFRS: HTTP Response code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cCXFRS-HTTP-Response-code/m-p/2371098#M134072</link>
      <description>&lt;P&gt;OK, you're talking about CXF server and not client.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTTP_RESPONSE_CODE is a good point but you also have to set Fault on :&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="pln"&gt;exchange&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;getOut&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;().&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;setHeader&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ"&gt;Exchange&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;HTTP_RESPONSE_CODE&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="lit"&gt;202&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;exchange&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;getOut&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;().&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;setFault&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;true&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;);&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Oct 2017 16:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cCXFRS-HTTP-Response-code/m-p/2371098#M134072</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2017-10-06T16:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: cCXFRS: HTTP Response code</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cCXFRS-HTTP-Response-code/m-p/2371099#M134073</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't work. Did you test this piece of code ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2017 14:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cCXFRS-HTTP-Response-code/m-p/2371099#M134073</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-07T14:18:49Z</dc:date>
    </item>
  </channel>
</rss>

