<?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 Route: getting URI parameters and send custom ResponseCode in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Route-getting-URI-parameters-and-send-custom-ResponseCode/m-p/2227794#M19264</link>
    <description>&lt;P&gt;Hey all&lt;/P&gt; 
&lt;P&gt;I'm currently trying to develop a route for creating a rest service, but I have two issues :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1/ Getting URI parameter&lt;/P&gt; 
&lt;P&gt;I use a cCXFRS with the URI pattern /{id}, but don't find any ways to retrieve the id in the road (body/header) nor in the cTalendJob that I use after that. What is the best way to do it ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2/ Sending a custom ResponseCode&lt;/P&gt; 
&lt;P&gt;I wish to choose the response code sending back by the road, by configuring it in the tRouteOutput of my cTalendJob, but no way to find the correct syntax to add it. Same question that above ^^&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;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="Capture.JPG" style="width: 515px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LtRO.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146651iA3BE73F81D32BC2D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LtRO.jpg" alt="0683p000009LtRO.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 09:52:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T09:52:34Z</dc:date>
    <item>
      <title>Route: getting URI parameters and send custom ResponseCode</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Route-getting-URI-parameters-and-send-custom-ResponseCode/m-p/2227794#M19264</link>
      <description>&lt;P&gt;Hey all&lt;/P&gt; 
&lt;P&gt;I'm currently trying to develop a route for creating a rest service, but I have two issues :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1/ Getting URI parameter&lt;/P&gt; 
&lt;P&gt;I use a cCXFRS with the URI pattern /{id}, but don't find any ways to retrieve the id in the road (body/header) nor in the cTalendJob that I use after that. What is the best way to do it ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2/ Sending a custom ResponseCode&lt;/P&gt; 
&lt;P&gt;I wish to choose the response code sending back by the road, by configuring it in the tRouteOutput of my cTalendJob, but no way to find the correct syntax to add it. Same question that above ^^&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;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="Capture.JPG" style="width: 515px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LtRO.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146651iA3BE73F81D32BC2D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LtRO.jpg" alt="0683p000009LtRO.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:52:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Route-getting-URI-parameters-and-send-custom-ResponseCode/m-p/2227794#M19264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Route: getting URI parameters and send custom ResponseCode</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Route-getting-URI-parameters-and-send-custom-ResponseCode/m-p/2227795#M19265</link>
      <description>Hello,&lt;BR /&gt;Nobody have any clues ?</description>
      <pubDate>Thu, 27 Apr 2017 07:58:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Route-getting-URI-parameters-and-send-custom-ResponseCode/m-p/2227795#M19265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-27T07:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Route: getting URI parameters and send custom ResponseCode</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Route-getting-URI-parameters-and-send-custom-ResponseCode/m-p/2227796#M19266</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Answer to your first question&lt;/P&gt;
&lt;P&gt;One way of retrieving the id in your route is to use the cSetHeader component by following the below steps.&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;Add a cSetHeader component to the canvas&lt;/LI&gt;
 &lt;LI&gt;Click the Add (Plus sign) button in Basic settings in the&amp;nbsp;Component tab&lt;/LI&gt;
 &lt;LI&gt;Enter your chosen header name in Name column&lt;/LI&gt;
 &lt;LI&gt;Choose Simple in the Language column&lt;/LI&gt;
 &lt;LI&gt;Enter "${headers.CamelCxfMessage[jaxrs.template.parameters][id][0]}" in the Value column&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Now the header you created above will have the value of id&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 11:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Route-getting-URI-parameters-and-send-custom-ResponseCode/m-p/2227796#M19266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-07T11:03:44Z</dc:date>
    </item>
  </channel>
</rss>

