<?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: Fetching and filtering data from a DB while processing a web service in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Fetching-and-filtering-data-from-a-DB-while-processing-a-web/m-p/2288337#M61840</link>
    <description>I've used the tDBInput component with dynamic SQL set in a tJava component (...as a context variable) to do some pretty serious SQL based on global or other data I know about coming into the web service via URL parameters...might be a direction to take...</description>
    <pubDate>Fri, 08 Aug 2014 20:10:46 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2014-08-08T20:10:46Z</dc:date>
    <item>
      <title>Fetching and filtering data from a DB while processing a web service</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fetching-and-filtering-data-from-a-DB-while-processing-a-web/m-p/2288334#M61837</link>
      <description>Hi there, 
&lt;BR /&gt;I would like to build a simple, synchronous web-service which should do this: 
&lt;BR /&gt;1. Receive a request 
&lt;BR /&gt;2. Fetch 1-n rows from a database (using 1 request field such as "customer number" as search criteria) 
&lt;BR /&gt;3. Filter that data (using another request field to do so) down to 1 row 
&lt;BR /&gt;4. Build a reponse based on the request and the filtered data 
&lt;BR /&gt;5. Return it 
&lt;BR /&gt;Of course I know the webinar 
&lt;A href="http://www.talend.com/resources/webinars/3-steps-to-developing-esb-solutions" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.talend.com/resources/webinars/3-steps-to-developing-esb-solutions&lt;/A&gt; which seems to offer a similar solution. 
&lt;BR /&gt;But essentially, my service works different in the way that I get more than 1 row back from the database and need to filter that data after fetching it from the DB. The filter is the succession of 3-5 filtering rules that are based on static lists and one request parameter. 
&lt;BR /&gt;May be I can implement that filter in SQL. But that would mean that I must take 2 values from the request, use them in a complex SQL query and use the result to build the response. 
&lt;BR /&gt;And I have no idea how to go about this. Any idea? 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Matt</description>
      <pubDate>Sat, 16 Nov 2024 11:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fetching-and-filtering-data-from-a-DB-while-processing-a-web/m-p/2288334#M61837</guid>
      <dc:creator>kleinmat</dc:creator>
      <dc:date>2024-11-16T11:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching and filtering data from a DB while processing a web service</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fetching-and-filtering-data-from-a-DB-while-processing-a-web/m-p/2288335#M61838</link>
      <description>Hi 
&lt;BR /&gt;In case of working with tRESTRequest the following request properties are available on the context: 
&lt;BR /&gt;"PARAMS" (map representing the parameter name and values used directly in the flow), 
&lt;BR /&gt;"ALL_HEADER_PARAMS" (list representing all the HTTP headers) 
&lt;BR /&gt;"ALL_QUERY_PARAMS" ((list representing all the HTTP query parameters) 
&lt;BR /&gt;Perhaps, after the SQL query is executed, you can get the flow accessing one of the above context properties and using it in the filter... 
&lt;BR /&gt;HTH, Sergey</description>
      <pubDate>Wed, 30 Apr 2014 12:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fetching-and-filtering-data-from-a-DB-while-processing-a-web/m-p/2288335#M61838</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-30T12:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching and filtering data from a DB while processing a web service</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fetching-and-filtering-data-from-a-DB-while-processing-a-web/m-p/2288336#M61839</link>
      <description>Hi there,
&lt;BR /&gt;I am actually working with SOAP.
&lt;BR /&gt;Extracting the values of 1 or more request elements is not the problem for me.
&lt;BR /&gt;But I don't know how to invoke a query to the database which is non-trivial (can't be described as simple join in the tXMLMap component).
&lt;BR /&gt;Any idea?
&lt;BR /&gt;Thanks
&lt;BR /&gt;Matt</description>
      <pubDate>Wed, 30 Apr 2014 12:56:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fetching-and-filtering-data-from-a-DB-while-processing-a-web/m-p/2288336#M61839</guid>
      <dc:creator>kleinmat</dc:creator>
      <dc:date>2014-04-30T12:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching and filtering data from a DB while processing a web service</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fetching-and-filtering-data-from-a-DB-while-processing-a-web/m-p/2288337#M61840</link>
      <description>I've used the tDBInput component with dynamic SQL set in a tJava component (...as a context variable) to do some pretty serious SQL based on global or other data I know about coming into the web service via URL parameters...might be a direction to take...</description>
      <pubDate>Fri, 08 Aug 2014 20:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fetching-and-filtering-data-from-a-DB-while-processing-a-web/m-p/2288337#M61840</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-08-08T20:10:46Z</dc:date>
    </item>
  </channel>
</rss>

