<?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: [resolved] How to pass the REST Endpoint to tRestClient as a parameter in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-the-REST-Endpoint-to-tRestClient-as-a/m-p/2223113#M16449</link>
    <description>All 
&lt;BR /&gt;I am actually working on the exact same issue right at this moment (even though it is Christmas Eve &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ). Anyway I have been trying to use&amp;nbsp;globalMap.get and have been receiving error's. Will now move on to try using a context variable. Would like to know if I should be able to get it to work with&amp;nbsp;globalMap.get 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Derek O'Connor 
&lt;BR /&gt;(Hipercept1)</description>
    <pubDate>Wed, 24 Dec 2014 21:46:22 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2014-12-24T21:46:22Z</dc:date>
    <item>
      <title>[resolved] How to pass the REST Endpoint to tRestClient as a parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-the-REST-Endpoint-to-tRestClient-as-a/m-p/2223108#M16444</link>
      <description>I have&amp;nbsp;deployed a&amp;nbsp;REST service (say, service A)&amp;nbsp;job that takes an id as a parameter and returns a json object. Now I am trying to consume this service&amp;nbsp;within another service (say, service B)&amp;nbsp;using&amp;nbsp;tRESTClient. How do I set the URL value of the tRESTClient component so that it takes the request parameter from service A?&amp;nbsp;</description>
      <pubDate>Mon, 22 Dec 2014 19:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-the-REST-Endpoint-to-tRestClient-as-a/m-p/2223108#M16444</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-22T19:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to pass the REST Endpoint to tRestClient as a parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-the-REST-Endpoint-to-tRestClient-as-a/m-p/2223109#M16445</link>
      <description>Hi
&lt;BR /&gt;What's data type of input request? Document or others? If Document, you need to use a tXMLMap to build the payload and pass it to tRestClient.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 23 Dec 2014 01:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-the-REST-Endpoint-to-tRestClient-as-a/m-p/2223109#M16445</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-23T01:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to pass the REST Endpoint to tRestClient as a parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-the-REST-Endpoint-to-tRestClient-as-a/m-p/2223110#M16446</link>
      <description>&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/234499/Service-B.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC6O.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155909iA53FC770A1F49FA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC6O.png" alt="0683p000009MC6O.png" /&gt;&lt;/span&gt; &lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;BR /&gt;Thanks for the reply!!&amp;nbsp;Service A is deployed in the server and it produces a json object.&amp;nbsp;Service&amp;nbsp;B calls service A via URL.&amp;nbsp;&amp;nbsp;Since Service A requires/accepts a parameter value, if I pass the complete URL (including the parameter) to the component of tRESTClient URL, I get the json object that I can process further in Service B using the tXMLMap. I need a way&amp;nbsp;to pass the&amp;nbsp;parameter value that Service A needs by constructing the URL for the tRESTClient instead of hardcoding the parameter value in the URL field of the client component. Is that possible? See the image Above.&amp;nbsp;How do I pass the ID&amp;nbsp;1234566 that you see in the image in the URL (i.e., ) as opposed to hardcoding it in the URL ( i.e., )? 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</description>
      <pubDate>Tue, 23 Dec 2014 15:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-the-REST-Endpoint-to-tRestClient-as-a/m-p/2223110#M16446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-23T15:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to pass the REST Endpoint to tRestClient as a parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-the-REST-Endpoint-to-tRestClient-as-a/m-p/2223111#M16447</link>
      <description>Hi
&lt;BR /&gt;Yes, it is possible. You can set a dynamic URL with context variable, for example:
&lt;BR /&gt;
&lt;PRE&gt;"http://localhost:8040/services/id/"+context.id&lt;/PRE&gt;
&lt;BR /&gt;Set a default value to context.id, and the value of context.id can be changed at run time.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 24 Dec 2014 10:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-the-REST-Endpoint-to-tRestClient-as-a/m-p/2223111#M16447</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-24T10:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to pass the REST Endpoint to tRestClient as a parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-the-REST-Endpoint-to-tRestClient-as-a/m-p/2223112#M16448</link>
      <description>Thanks Shong!!&amp;nbsp;The use&amp;nbsp;of context&amp;nbsp;worked. However,&amp;nbsp;if I want to&amp;nbsp;pass the id of the URL from another request. How do I do it? I tried to use the globalMap.get("xxx") function, but tRESTClient doesn't seem to like it. See the attached picture below. 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/234499/Service-B_20141224-1912.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBkt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146312i562A22DC6A8969DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBkt.png" alt="0683p000009MBkt.png" /&gt;&lt;/span&gt; &lt;/A&gt;</description>
      <pubDate>Wed, 24 Dec 2014 18:14:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-the-REST-Endpoint-to-tRestClient-as-a/m-p/2223112#M16448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-24T18:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to pass the REST Endpoint to tRestClient as a parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-the-REST-Endpoint-to-tRestClient-as-a/m-p/2223113#M16449</link>
      <description>All 
&lt;BR /&gt;I am actually working on the exact same issue right at this moment (even though it is Christmas Eve &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ). Anyway I have been trying to use&amp;nbsp;globalMap.get and have been receiving error's. Will now move on to try using a context variable. Would like to know if I should be able to get it to work with&amp;nbsp;globalMap.get 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Derek O'Connor 
&lt;BR /&gt;(Hipercept1)</description>
      <pubDate>Wed, 24 Dec 2014 21:46:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-the-REST-Endpoint-to-tRestClient-as-a/m-p/2223113#M16449</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-12-24T21:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to pass the REST Endpoint to tRestClient as a parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-the-REST-Endpoint-to-tRestClient-as-a/m-p/2223114#M16450</link>
      <description>Hi Lurdas 
&lt;BR /&gt; 
&lt;FONT color="#5b5b5d"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;Design your job like this:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#5b5b5d"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;tRestRequest--main--tFlowToIterate--iterate--tRestClient....&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;FONT color="#5b5b5d"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;To pass a input parameter to webservcice, you have to define it on tRestRequest, to do:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#5b5b5d"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;1. Set the Default properties of the id column as &lt;B&gt;query &lt;/B&gt;on the schema of tRestRequest.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#5b5b5d"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/674/1_20141225-0312.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MC5G.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130763i30047CA3654FCE0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MC5G.png" alt="0683p000009MC5G.png" /&gt;&lt;/span&gt; &lt;/A&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt;2. Then, you are able to get this parameter on any other component later with this expression: 
&lt;BR /&gt; 
&lt;PRE&gt;(Integer)globalMap.get("row1.id")&lt;/PRE&gt; 
&lt;BR /&gt;//row1 is the flow name from tRestRequent, it is&amp;nbsp; 
&lt;FONT size="2"&gt;getPatient in your case, change it to&amp;nbsp;&lt;/FONT&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, 'bitstream vera sans mono', 'courier new', courier, monospace"&gt;(Integer)globalMap.get("getPatient.id").&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;3. Set the url of tRestCient as: 
&lt;BR /&gt; 
&lt;PRE&gt;"http://localhost:8040/services/id/"+(Integer)globalMap.get("getPatient.id")&lt;/PRE&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 25 Dec 2014 02:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-the-REST-Endpoint-to-tRestClient-as-a/m-p/2223114#M16450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-25T02:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to pass the REST Endpoint to tRestClient as a parameter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-the-REST-Endpoint-to-tRestClient-as-a/m-p/2223115#M16451</link>
      <description>Fantastic!!! Thanks Shong!! Just one issue that I&amp;nbsp;encountered with your stated design. I was not able to use Row Iterator&amp;nbsp;(
&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="1"&gt;tFlowToIterate--iterate--tRestClient)&lt;/FONT&gt;&lt;/FONT&gt;. It did not allow me. Instead, I&amp;nbsp;ended up&amp;nbsp;using&amp;nbsp;"On Component Ok" Trigger.</description>
      <pubDate>Tue, 30 Dec 2014 15:15:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-the-REST-Endpoint-to-tRestClient-as-a/m-p/2223115#M16451</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-30T15:15:34Z</dc:date>
    </item>
  </channel>
</rss>

