<?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 Web API - POST XML in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Web-API-POST-XML/m-p/1781042#M60769</link>
    <description>&lt;P&gt;&lt;FONT size="3"&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;We have used the Rest API successfully when using the &lt;STRONG&gt;Get&lt;/STRONG&gt; method but are now working on XML response to a &lt;STRONG&gt;POST&lt;/STRONG&gt;.&amp;nbsp; The connection is successful, but the results are in a single &lt;STRONG&gt;'output'&lt;/STRONG&gt; field in CSV format which is truncated due to field length as we are reporting on multiple records.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;The Post method template is similar as follows :&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;call method='exportData' callerName='a string that identifies your client application'&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;credentials login='"&amp;amp;login&amp;amp;"' password='"&amp;amp;password&amp;amp;"'&amp;gt;&amp;lt;/credentials&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;version name='"&amp;amp;ActualVersion&amp;amp;"' isDefault='false'&amp;gt;&amp;lt;/version&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;format useInternalCodes='true' includeUnmappedItems='false'&amp;gt;&amp;lt;/format&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;filters&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;accounts&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;account code='&amp;lt;Account Code&amp;gt;' isAssumption='false' includeDescendants='true'&amp;gt;&amp;lt;/account&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;/accounts&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;timeSpan start='"&amp;amp;d1&amp;amp;"' end='"&amp;amp;d2&amp;amp;"'&amp;gt;&amp;lt;/timeSpan&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;/filters&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;dimensions&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;dimension name='&amp;lt;Dimension''&amp;gt;&amp;lt;/dimension&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;/dimensions&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;rules includeZeroRows='false' markInvalidValues='false' markBlanks='false'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;timeRollups='false'&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;/rules&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;/call&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;And the load script is as follows:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;RestConnectorMasterTable:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#333399"&gt;SQL SELECT &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#333399"&gt;"attr:success" AS "success",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#333399"&gt;"output"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#333399"&gt;FROM XML "response";&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;[response]:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#333399"&gt;LOAD [success],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#333399"&gt;[output]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#333399"&gt;RESIDENT RestConnectorMasterTable;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;DROP TABLE RestConnectorMasterTable;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Does anybody have any experience or suggestions in formatting the XML response in table format or how we could export entire output to a CSV file to then load into Qlik Sense?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Appreciate any help provided.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Feb 2021 23:24:21 GMT</pubDate>
    <dc:creator>Kevin-M</dc:creator>
    <dc:date>2021-02-08T23:24:21Z</dc:date>
    <item>
      <title>Web API - POST XML</title>
      <link>https://community.qlik.com/t5/App-Development/Web-API-POST-XML/m-p/1781042#M60769</link>
      <description>&lt;P&gt;&lt;FONT size="3"&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;We have used the Rest API successfully when using the &lt;STRONG&gt;Get&lt;/STRONG&gt; method but are now working on XML response to a &lt;STRONG&gt;POST&lt;/STRONG&gt;.&amp;nbsp; The connection is successful, but the results are in a single &lt;STRONG&gt;'output'&lt;/STRONG&gt; field in CSV format which is truncated due to field length as we are reporting on multiple records.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;The Post method template is similar as follows :&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;call method='exportData' callerName='a string that identifies your client application'&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;credentials login='"&amp;amp;login&amp;amp;"' password='"&amp;amp;password&amp;amp;"'&amp;gt;&amp;lt;/credentials&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;version name='"&amp;amp;ActualVersion&amp;amp;"' isDefault='false'&amp;gt;&amp;lt;/version&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;format useInternalCodes='true' includeUnmappedItems='false'&amp;gt;&amp;lt;/format&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;filters&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;accounts&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;account code='&amp;lt;Account Code&amp;gt;' isAssumption='false' includeDescendants='true'&amp;gt;&amp;lt;/account&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;/accounts&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;timeSpan start='"&amp;amp;d1&amp;amp;"' end='"&amp;amp;d2&amp;amp;"'&amp;gt;&amp;lt;/timeSpan&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;/filters&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;dimensions&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;dimension name='&amp;lt;Dimension''&amp;gt;&amp;lt;/dimension&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;/dimensions&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;rules includeZeroRows='false' markInvalidValues='false' markBlanks='false'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;timeRollups='false'&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;/rules&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;&amp;lt;/call&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;And the load script is as follows:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;RestConnectorMasterTable:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#333399"&gt;SQL SELECT &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#333399"&gt;"attr:success" AS "success",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#333399"&gt;"output"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#333399"&gt;FROM XML "response";&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;[response]:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#333399"&gt;LOAD [success],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#333399"&gt;[output]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#333399"&gt;RESIDENT RestConnectorMasterTable;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#333399"&gt;DROP TABLE RestConnectorMasterTable;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Does anybody have any experience or suggestions in formatting the XML response in table format or how we could export entire output to a CSV file to then load into Qlik Sense?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Appreciate any help provided.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 23:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Web-API-POST-XML/m-p/1781042#M60769</guid>
      <dc:creator>Kevin-M</dc:creator>
      <dc:date>2021-02-08T23:24:21Z</dc:date>
    </item>
  </channel>
</rss>

