<?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: Problems tRestClient component not reading XML response body type in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Problems-tRestClient-component-not-reading-XML-response-body/m-p/2216034#M12223</link>
    <description>Hi 
&lt;BR /&gt;Has something changed in the studio setup/version by the time the job stopped working ? If nothing has changed but the working job has stopped working then may the response data have changed ? The log statement shows some unrecognized symbols just before a Result tag, what do those symbols represent ? 
&lt;BR /&gt;Sergey</description>
    <pubDate>Fri, 25 Sep 2015 10:01:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-25T10:01:26Z</dc:date>
    <item>
      <title>Problems tRestClient component not reading XML response body type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problems-tRestClient-component-not-reading-XML-response-body/m-p/2216032#M12221</link>
      <description>I've got major headache with getting these components to work with xml body content type. 
&lt;BR /&gt;What is more mystifying is that that all my jobs were working fine locally and on TAC server, then a few days ago they stopped working and I got the following errors, while we have other jobs, that use the same tRESTClient components, running on TAC server just fine,&amp;nbsp; 
&lt;BR /&gt;We've tried creating in commercial version of studio (where the working jobs were created), and imported them into "Platform" version (where I created the failing jobs) to remotely upload to TAC server. But I get same error what ever version I export these jobs too. 
&lt;BR /&gt;I get following errors with tRESTClient , Log Messages "On" 
&lt;BR /&gt;---------------------------- 
&lt;BR /&gt;ID: 1 
&lt;BR /&gt;Response-Code: 200 
&lt;BR /&gt;Encoding: ISO-8859-1 
&lt;BR /&gt;Content-Type: text/xml; schema=authentication-result 
&lt;BR /&gt;Headers: {Cache-Control=, Content-Length=, content-type=, Date=, Server=, Set-Cookie=, Warning=, X-AspNet-Version=, X-Powered-By=} 
&lt;BR /&gt;Payload: ï»¿&amp;lt;Result&amp;gt;&amp;lt;Success&amp;gt;true&amp;lt;/Success&amp;gt;&amp;lt;Token&amp;gt;9CBC391C056EBE00B5CB499906121B1023361D03A159C2E4B90773B63C699DD68925AD8B30E5746E605C89F2E777FA9A85019E9B3B7CEDACB79AC61F6433F88A31B5ABD43642D8B1662FBBCDFAB02378135A3ECBE15E2D6AA9DCB246E71449F80B1FA5E985207973765FC41CCB407F9A5D4C645C&amp;lt;/Token&amp;gt;&amp;lt;/Result&amp;gt; 
&lt;BR /&gt;-------------------------------------- 
&lt;BR /&gt;: org.apache.cxf.jaxrs.client.AbstractClient - .Problem with reading the response message, class : interface org.dom4j.Document, ContentType : text/xml;schema=authentication-result. 
&lt;BR /&gt;Exception in component tRESTClient_2 
&lt;BR /&gt;javax.ws.rs.client.ClientException: .Problem with reading the response message, class : interface org.dom4j.Document, ContentType : text/xml;schema=authentication-result. 
&lt;BR /&gt;I can make it work by changing the "Accept Type" to "Any" then the xml gets returned as a string , and use textractregexfields to get the token. 
&lt;BR /&gt;However I need to pass an xml payload to my second tRestClient and this now fails?? 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/304731/trest_content_any.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBVr.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157815iB32B81FFC243D6DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBVr.png" alt="0683p000009MBVr.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/304731/trest_content_post.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBZZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132483iE6057B7E957FF0BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBZZ.png" alt="0683p000009MBZZ.png" /&gt;&lt;/span&gt; &lt;/A&gt;</description>
      <pubDate>Fri, 25 Sep 2015 06:51:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problems-tRestClient-component-not-reading-XML-response-body/m-p/2216032#M12221</guid>
      <dc:creator>synfield</dc:creator>
      <dc:date>2015-09-25T06:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problems tRestClient component not reading XML response body type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problems-tRestClient-component-not-reading-XML-response-body/m-p/2216033#M12222</link>
      <description>can you use tConvertType to convert String to Document schema type?&lt;BR /&gt;Thomas</description>
      <pubDate>Fri, 25 Sep 2015 09:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problems-tRestClient-component-not-reading-XML-response-body/m-p/2216033#M12222</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-25T09:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problems tRestClient component not reading XML response body type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problems-tRestClient-component-not-reading-XML-response-body/m-p/2216034#M12223</link>
      <description>Hi 
&lt;BR /&gt;Has something changed in the studio setup/version by the time the job stopped working ? If nothing has changed but the working job has stopped working then may the response data have changed ? The log statement shows some unrecognized symbols just before a Result tag, what do those symbols represent ? 
&lt;BR /&gt;Sergey</description>
      <pubDate>Fri, 25 Sep 2015 10:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problems-tRestClient-component-not-reading-XML-response-body/m-p/2216034#M12223</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-25T10:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problems tRestClient component not reading XML response body type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problems-tRestClient-component-not-reading-XML-response-body/m-p/2216035#M12224</link>
      <description>It appears to be a BOM ("Byte Order mark"), I'm told that the response from the REST services we're using is UTF-8, but that the response output provided by the tRESTClient is ISO-8859-1.&lt;BR /&gt;Can you confirm what encoding the tRESTClient uses by default?&lt;BR /&gt;How do I set this in Talend?&lt;BR /&gt;I've tried using "Accept-Charset : utf-8" header, but this gives me an "java.io.IOException: Illegal character: &amp;lt;&amp;gt;" error, when I do xml body posts to the REST service.&lt;BR /&gt;Regards,&lt;BR /&gt;Synfield</description>
      <pubDate>Mon, 28 Sep 2015 04:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problems-tRestClient-component-not-reading-XML-response-body/m-p/2216035#M12224</guid>
      <dc:creator>synfield</dc:creator>
      <dc:date>2015-09-28T04:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problems tRestClient component not reading XML response body type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problems-tRestClient-component-not-reading-XML-response-body/m-p/2216036#M12225</link>
      <description>Looking back at this issue, is there any chance you can provide a test job helping to reproduce the issue ? Thanks</description>
      <pubDate>Mon, 09 May 2016 11:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problems-tRestClient-component-not-reading-XML-response-body/m-p/2216036#M12225</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-09T11:11:49Z</dc:date>
    </item>
  </channel>
</rss>

