<?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 Getting HTTP Header on SOAP Response in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Getting-HTTP-Header-on-SOAP-Response/m-p/2374450#M137045</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;In Integration Perspective (ie without using routes) is it possible to get HTTP Header on a reponse from a SOAP Call ? (using tHTTPRequest,tSOAP,tESBConsumer..?). I am calling an external Webservice, and I need to retrieve informations from the http header (not the soap header).&lt;BR /&gt;I am using Talend 5.6.2.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Aug 2015 13:05:21 GMT</pubDate>
    <dc:creator>corentin1</dc:creator>
    <dc:date>2015-08-06T13:05:21Z</dc:date>
    <item>
      <title>Getting HTTP Header on SOAP Response</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-HTTP-Header-on-SOAP-Response/m-p/2374450#M137045</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;In Integration Perspective (ie without using routes) is it possible to get HTTP Header on a reponse from a SOAP Call ? (using tHTTPRequest,tSOAP,tESBConsumer..?). I am calling an external Webservice, and I need to retrieve informations from the http header (not the soap header).&lt;BR /&gt;I am using Talend 5.6.2.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2015 13:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-HTTP-Header-on-SOAP-Response/m-p/2374450#M137045</guid>
      <dc:creator>corentin1</dc:creator>
      <dc:date>2015-08-06T13:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting HTTP Header on SOAP Response</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-HTTP-Header-on-SOAP-Response/m-p/2374451#M137046</link>
      <description>Hi, 
&lt;BR /&gt;As far as I know I requested to extend tHTTPRequest to support this feature as well, but it never happened. On the other hand it is not hard to change the component behavior to support this. 
&lt;BR /&gt;There is following block in tHttpRequest_main.javajet file: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;if (java.net.HttpURLConnection.HTTP_OK == (urlConn_&amp;lt;%=cid%&amp;gt;.getResponseCode())) {&lt;BR /&gt;	java.io.InputStream bis_&amp;lt;%=cid%&amp;gt; = new java.io.BufferedInputStream(urlConn_&amp;lt;%=cid%&amp;gt;.getInputStream());&lt;BR /&gt;&amp;lt;%&lt;/PRE&gt; 
&lt;BR /&gt;The first line is detecting if the method call was delivered, if yes, you can get from connection the headers like this: 
&lt;BR /&gt; 
&lt;PRE&gt;urlConn_&amp;lt;%=cid%&amp;gt;.getHeaderFields();&lt;BR /&gt;	for (Map.Entry&amp;lt;String, List&amp;lt;String&amp;gt;&amp;gt; entry : map.entrySet()) {&lt;BR /&gt;		// Change this to some object variable and map it to output of the component, this output you will need to define in XML configuration file&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println("Key : " + entry.getKey() + " ,Value : " + entry.getValue());&lt;BR /&gt;	}&lt;/PRE&gt; 
&lt;BR /&gt;Or you can get single header just like this: 
&lt;BR /&gt; 
&lt;PRE&gt;String myHeader = conn.getHeaderField("MY_HEADER");&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;If you are going to extend that component to support this, you might raise a ticket as new feature request at talend bug portal: 
&lt;BR /&gt; 
&lt;A href="https://jira.talendforge.org/secure/Dashboard.jspa" target="_blank" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/secure/Dashboard.jspa&lt;/A&gt; 
&lt;BR /&gt;and share it with others, so you will get new feature into Talend main stream 
&lt;BR /&gt; 
&lt;BR /&gt;Ladislav</description>
      <pubDate>Thu, 06 Aug 2015 13:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-HTTP-Header-on-SOAP-Response/m-p/2374451#M137046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-06T13:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting HTTP Header on SOAP Response</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-HTTP-Header-on-SOAP-Response/m-p/2374452#M137047</link>
      <description>Thank you very much for this precise answer : for now, i have chosen the quick option, and I've just put a tJavaRow behind my tHttpRequest, in order to get my Headers. It's working now ! i'll check the 'rebuild the component' option later..</description>
      <pubDate>Thu, 06 Aug 2015 14:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-HTTP-Header-on-SOAP-Response/m-p/2374452#M137047</guid>
      <dc:creator>corentin1</dc:creator>
      <dc:date>2015-08-06T14:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Getting HTTP Header on SOAP Response</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-HTTP-Header-on-SOAP-Response/m-p/2374453#M137048</link>
      <description>Of course I understand that, go as required &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 07 Aug 2015 16:43:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-HTTP-Header-on-SOAP-Response/m-p/2374453#M137048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-07T16:43:02Z</dc:date>
    </item>
  </channel>
</rss>

