<?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: Help parsing XML Response in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Help-parsing-XML-Response/m-p/2452450#M20567</link>
    <description>&lt;P&gt;I'm almost convinced that it has to do with the response structure that is not properly parsed in tags and therefore not recognized by Qlik.&lt;/P&gt;
&lt;P&gt;If I call the API you provided in Postman, I get a nice structured response, differently from the API I'm trying to consume:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="therealdees_0-1715723434527.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166094i95F96D897F7417E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="therealdees_0-1715723434527.png" alt="therealdees_0-1715723434527.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="therealdees_1-1715723484136.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166096iFB67EB90CD78360D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="therealdees_1-1715723484136.png" alt="therealdees_1-1715723484136.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2024 21:52:17 GMT</pubDate>
    <dc:creator>pedrohenriqueperna</dc:creator>
    <dc:date>2024-05-14T21:52:17Z</dc:date>
    <item>
      <title>Help parsing XML Response</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Help-parsing-XML-Response/m-p/2452329#M20559</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm having trouble trying to parse a XML SOAP response in Qlik, using the REST connector and hoping someone could help me out.&lt;/P&gt;
&lt;P&gt;I'm not very experienced in the subject, but I've managed to get the response. The problem is that it comes in a single field and I don't know how parse it as a table.&lt;/P&gt;
&lt;P&gt;1. I've set the body and header in the REST connector, and added the wsdl as the URL request. If I click "test connection" it says "succeeded".&lt;/P&gt;
&lt;P&gt;2. If I click on the "select data" button in the connector, it opens the preview table, but it automatically is read as a CSV. If I change the option to XML, only the headers will show in the preview (no data is retrieved), while the CSV will show the actual response data &lt;SPAN class="yKMVIe" aria-level="1"&gt;encapsulated in a single cell.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="therealdees_0-1715700569654.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166059iFEB886AA45A54E55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="therealdees_0-1715700569654.png" alt="therealdees_0-1715700569654.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;(if I hover the value I see the same response I get in postman, which is correct)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="therealdees_1-1715700607338.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166060i13A818A4442A4B97/image-size/medium?v=v2&amp;amp;px=400" role="button" title="therealdees_1-1715700607338.png" alt="therealdees_1-1715700607338.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;(XML doesn't return values, but only these columns)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I display this response as table in Qlik?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="therealdees_2-1715700923039.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166061i3F9CB12A801435BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="therealdees_2-1715700923039.png" alt="therealdees_2-1715700923039.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: I've noticed the response I get carries "&amp;amp;lt;" and "&amp;amp;gt;" which I found out to be the "&amp;lt;&amp;gt;" chars. Not sure if it's relevant.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 15:35:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Help-parsing-XML-Response/m-p/2452329#M20559</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2024-05-14T15:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help parsing XML Response</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Help-parsing-XML-Response/m-p/2452374#M20563</link>
      <description>&lt;PRE class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução" aria-label="Texto traduzido" data-ved="2ahUKEwiR1JXD2o2GAxWQHbkGHTP6B9wQ3ewLegQICBAU"&gt;&lt;SPAN class="Y2IQFc"&gt;In the REST connection you must place the following content in the Query headers:
Name: Content-Type
Value: text/xml; charset=utf-8
&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lind_oliveira20_0-1715709490818.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166069i297ECACC1EA78C7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lind_oliveira20_0-1715709490818.png" alt="lind_oliveira20_0-1715709490818.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução" aria-label="Texto traduzido" data-ved="2ahUKEwiR1JXD2o2GAxWQHbkGHTP6B9wQ3ewLegQICBAU"&gt;&lt;SPAN class="Y2IQFc"&gt;Then just test the connection and save.

The next step is to click on select data and select the last XML tag.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lind_oliveira20_1-1715709516767.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166070i3DE8F2757AB3CB08/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lind_oliveira20_1-1715709516767.png" alt="lind_oliveira20_1-1715709516767.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução" aria-label="Texto traduzido" data-ved="2ahUKEwiR1JXD2o2GAxWQHbkGHTP6B9wQ3ewLegQICBAU"&gt;&lt;SPAN class="Y2IQFc"&gt;The API used in the test returns the name of the list of countries&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução" aria-label="Texto traduzido" data-ved="2ahUKEwiR1JXD2o2GAxWQHbkGHTP6B9wQ3ewLegQICBAU"&gt;&lt;SPAN class="Y2IQFc"&gt;&lt;BR /&gt;Enpoint api: &lt;SPAN&gt;http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Request Body: &lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;BR /&gt;&amp;lt;soap12:Envelope xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"&amp;gt;&lt;BR /&gt;&amp;lt;soap12:Body&amp;gt;&lt;BR /&gt;&amp;lt;ListOfCountryNamesByName xmlns="http://www.oorsprong.org/websamples.countryinfo"&amp;gt;&lt;BR /&gt;&amp;lt;/ListOfCountryNamesByName&amp;gt;&lt;BR /&gt;&amp;lt;/soap12:Body&amp;gt;&lt;BR /&gt;&amp;lt;/soap12:Envelope&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Query headers: Name: Content-Type: Value: text/xml; charset=utf-8&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 May 2024 18:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Help-parsing-XML-Response/m-p/2452374#M20563</guid>
      <dc:creator>lind_oliveira20</dc:creator>
      <dc:date>2024-05-14T18:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help parsing XML Response</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Help-parsing-XML-Response/m-p/2452426#M20564</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;Thanks for the reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the headers, I had exactly that, but still it doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested the API you provided for the list of countries, and funny thing is that it happens the same!&lt;/P&gt;
&lt;P&gt;What am I missing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did exactly that. Then went to "select data" and it automatically recognizes it as a CSV file. If I change the response type to XML it gives me the same structure (which relates to the SOAP config columns I guess):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="therealdees_0-1715718811731.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166084iB589F72B274678C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="therealdees_0-1715718811731.png" alt="therealdees_0-1715718811731.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the setup I've used with the example you provided:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="therealdees_1-1715718874848.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166085i61EE034126BD7A23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="therealdees_1-1715718874848.png" alt="therealdees_1-1715718874848.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="therealdees_2-1715718897574.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166086i0460A97FDBC8C6CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="therealdees_2-1715718897574.png" alt="therealdees_2-1715718897574.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="therealdees_3-1715718929777.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166087i58CCD4A725C95973/image-size/medium?v=v2&amp;amp;px=400" role="button" title="therealdees_3-1715718929777.png" alt="therealdees_3-1715718929777.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="therealdees_4-1715718954713.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166088i2711FEA5D1962DF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="therealdees_4-1715718954713.png" alt="therealdees_4-1715718954713.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 20:36:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Help-parsing-XML-Response/m-p/2452426#M20564</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2024-05-14T20:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help parsing XML Response</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Help-parsing-XML-Response/m-p/2452434#M20566</link>
      <description>&lt;P&gt;Actually, I just realized that the "menu" in the "select data" can be expanded from Envelope &amp;gt; Body &amp;gt; etc.&lt;/P&gt;
&lt;P&gt;The API you provided as an example did work and gave me a table with the data, but the one I'm using gives me no results (only if I identify the data as a CSV, then it gives me a column with the raw response in a single field as mentioned before)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="therealdees_0-1715719931626.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166090i967F3F38752C79F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="therealdees_0-1715719931626.png" alt="therealdees_0-1715719931626.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 20:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Help-parsing-XML-Response/m-p/2452434#M20566</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2024-05-14T20:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help parsing XML Response</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Help-parsing-XML-Response/m-p/2452450#M20567</link>
      <description>&lt;P&gt;I'm almost convinced that it has to do with the response structure that is not properly parsed in tags and therefore not recognized by Qlik.&lt;/P&gt;
&lt;P&gt;If I call the API you provided in Postman, I get a nice structured response, differently from the API I'm trying to consume:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="therealdees_0-1715723434527.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166094i95F96D897F7417E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="therealdees_0-1715723434527.png" alt="therealdees_0-1715723434527.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="therealdees_1-1715723484136.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166096iFB67EB90CD78360D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="therealdees_1-1715723484136.png" alt="therealdees_1-1715723484136.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 21:52:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Help-parsing-XML-Response/m-p/2452450#M20567</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2024-05-14T21:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help parsing XML Response</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Help-parsing-XML-Response/m-p/2456244#M20664</link>
      <description>&lt;P&gt;I once went through a similar problem, I solved it by generating an XML file of the response and dragging it to qlik in the data manager, qlik generated the script automatically and then I copied the script and processed it as I needed, I suggest you do this test.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 19:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Help-parsing-XML-Response/m-p/2456244#M20664</guid>
      <dc:creator>lind_oliveira20</dc:creator>
      <dc:date>2024-05-24T19:13:10Z</dc:date>
    </item>
  </channel>
</rss>

