Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
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).
I am using Talend 5.6.2.
if (java.net.HttpURLConnection.HTTP_OK == (urlConn_<%=cid%>.getResponseCode())) {
java.io.InputStream bis_<%=cid%> = new java.io.BufferedInputStream(urlConn_<%=cid%>.getInputStream());
<%
urlConn_<%=cid%>.getHeaderFields();
for (Map.Entry<String, List<String>> entry : map.entrySet()) {
// 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
System.out.println("Key : " + entry.getKey() + " ,Value : " + entry.getValue());
}
String myHeader = conn.getHeaderField("MY_HEADER");