<?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 Access Hierarchical Data from Web Service without Multiple HTTP Calls in Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Access-Hierarchical-Data-from-Web-Service-without-Multiple-HTTP/m-p/418738#M700213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to return hierarchical data from a web service in the load script of a Qlikview application with a single HTTP call.&amp;nbsp; I have created a simple service to demonstrate.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the output from the web service XML:&lt;/P&gt;&lt;P class="line"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="23553" class="jive-image-thumbnail jive-image" onclick="" alt="SampleXML.png" src="https://community.qlik.com/legacyfs/online/23553_SampleXML.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the web files wizard in the script editor, the following script code is generated:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;// Start of [HierarchicalData.asmx/hierarchicaldata] LOAD statements&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;'Children/HierarchicalDataSample':&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;LOAD Name,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_HierarchicalDataSample_D1F3DE47113B8958&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key to parent table: ArrayOfHierarchicalDataSample/HierarchicalDataSample&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:48453/Service.asmx/HierarchicalData"&gt;http://localhost:48453/Service.asmx/HierarchicalData&lt;/A&gt;&lt;SPAN&gt;] (XmlSimple, Table is [ArrayOfHierarchicalDataSample/HierarchicalDataSample/Children/HierarchicalDataSample]);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;'ArrayOfHierarchicalDataSample/HierarchicalDataSample':&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;LOAD Name,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_ArrayOfHierarchicalDataSample_1509068996212F5B,&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key to parent table: ArrayOfHierarchicalDataSample&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_HierarchicalDataSample_D1F3DE47113B8958&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key for this table: ArrayOfHierarchicalDataSample/HierarchicalDataSample&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:48453/Service.asmx/HierarchicalData"&gt;http://localhost:48453/Service.asmx/HierarchicalData&lt;/A&gt;&lt;SPAN&gt;] (XmlSimple, Table is [ArrayOfHierarchicalDataSample/HierarchicalDataSample]);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;ArrayOfHierarchicalDataSample:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;LOAD xmlns:xsi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:xsd,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_ArrayOfHierarchicalDataSample_1509068996212F5B&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key for this table: ArrayOfHierarchicalDataSample&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:48453/Service.asmx/HierarchicalData"&gt;http://localhost:48453/Service.asmx/HierarchicalData&lt;/A&gt;&lt;SPAN&gt;] (XmlSimple, Table is [ArrayOfHierarchicalDataSample]);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;// End of [HierarchicalData.asmx/hierarchicaldata] LOAD statements&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This results in 3 separate HTTP connections being made to the web service:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&lt;IMG __jive_id="23554" class="jive-image-thumbnail jive-image" onclick="" alt="HttpConnections.png" src="https://community.qlik.com/legacyfs/online/23554_HttpConnections.png" width="450" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might be ok for non volatile data, but is not acceptable for us as it could result in inconsistencies in the data being returned (e.g. if the data changes between the time that the first and last of the web service calls are made).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other approach I tried was manually modifying the extract script to access the child data within the hierarchy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;MultipleLevels:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;LOAD Name as ParentName,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time as ParentTime,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Children/HierarchicalDataSample/Name] as [ChildName]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:48453/Service.asmx/HierarchicalData"&gt;http://localhost:48453/Service.asmx/HierarchicalData&lt;/A&gt;&lt;SPAN&gt;] (XmlSimple, Table is [ArrayOfHierarchicalDataSample/HierarchicalDataSample]);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This results in a single call being made to the web service, but QV is only returning the first child element (Mary in this example). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="23555" class="jive-image" alt="LostChild.png" src="https://community.qlik.com/legacyfs/online/23555_LostChild.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully I'm just doing something stupid.&amp;nbsp; If anyone has any ideas on how I can access hierarchical data from a web service in a single call, I'd appreciate any pointers.&amp;nbsp; I'm ideally looking to achieve this with the native functionality in the load script (as opposed to using macros).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2012 09:46:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-16T09:46:26Z</dc:date>
    <item>
      <title>Access Hierarchical Data from Web Service without Multiple HTTP Calls in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Access-Hierarchical-Data-from-Web-Service-without-Multiple-HTTP/m-p/418738#M700213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to return hierarchical data from a web service in the load script of a Qlikview application with a single HTTP call.&amp;nbsp; I have created a simple service to demonstrate.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the output from the web service XML:&lt;/P&gt;&lt;P class="line"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="23553" class="jive-image-thumbnail jive-image" onclick="" alt="SampleXML.png" src="https://community.qlik.com/legacyfs/online/23553_SampleXML.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the web files wizard in the script editor, the following script code is generated:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;// Start of [HierarchicalData.asmx/hierarchicaldata] LOAD statements&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;'Children/HierarchicalDataSample':&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;LOAD Name,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_HierarchicalDataSample_D1F3DE47113B8958&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key to parent table: ArrayOfHierarchicalDataSample/HierarchicalDataSample&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:48453/Service.asmx/HierarchicalData"&gt;http://localhost:48453/Service.asmx/HierarchicalData&lt;/A&gt;&lt;SPAN&gt;] (XmlSimple, Table is [ArrayOfHierarchicalDataSample/HierarchicalDataSample/Children/HierarchicalDataSample]);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;'ArrayOfHierarchicalDataSample/HierarchicalDataSample':&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;LOAD Name,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_ArrayOfHierarchicalDataSample_1509068996212F5B,&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key to parent table: ArrayOfHierarchicalDataSample&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_HierarchicalDataSample_D1F3DE47113B8958&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key for this table: ArrayOfHierarchicalDataSample/HierarchicalDataSample&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:48453/Service.asmx/HierarchicalData"&gt;http://localhost:48453/Service.asmx/HierarchicalData&lt;/A&gt;&lt;SPAN&gt;] (XmlSimple, Table is [ArrayOfHierarchicalDataSample/HierarchicalDataSample]);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;ArrayOfHierarchicalDataSample:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;LOAD xmlns:xsi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:xsd,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_ArrayOfHierarchicalDataSample_1509068996212F5B&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key for this table: ArrayOfHierarchicalDataSample&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:48453/Service.asmx/HierarchicalData"&gt;http://localhost:48453/Service.asmx/HierarchicalData&lt;/A&gt;&lt;SPAN&gt;] (XmlSimple, Table is [ArrayOfHierarchicalDataSample]);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;// End of [HierarchicalData.asmx/hierarchicaldata] LOAD statements&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This results in 3 separate HTTP connections being made to the web service:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&lt;IMG __jive_id="23554" class="jive-image-thumbnail jive-image" onclick="" alt="HttpConnections.png" src="https://community.qlik.com/legacyfs/online/23554_HttpConnections.png" width="450" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might be ok for non volatile data, but is not acceptable for us as it could result in inconsistencies in the data being returned (e.g. if the data changes between the time that the first and last of the web service calls are made).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other approach I tried was manually modifying the extract script to access the child data within the hierarchy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;MultipleLevels:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;LOAD Name as ParentName,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time as ParentTime,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Children/HierarchicalDataSample/Name] as [ChildName]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:48453/Service.asmx/HierarchicalData"&gt;http://localhost:48453/Service.asmx/HierarchicalData&lt;/A&gt;&lt;SPAN&gt;] (XmlSimple, Table is [ArrayOfHierarchicalDataSample/HierarchicalDataSample]);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This results in a single call being made to the web service, but QV is only returning the first child element (Mary in this example). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="23555" class="jive-image" alt="LostChild.png" src="https://community.qlik.com/legacyfs/online/23555_LostChild.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully I'm just doing something stupid.&amp;nbsp; If anyone has any ideas on how I can access hierarchical data from a web service in a single call, I'd appreciate any pointers.&amp;nbsp; I'm ideally looking to achieve this with the native functionality in the load script (as opposed to using macros).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 09:46:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Access-Hierarchical-Data-from-Web-Service-without-Multiple-HTTP/m-p/418738#M700213</guid>
      <dc:creator />
      <dc:date>2012-10-16T09:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Access Hierarchical Data from Web Service without Multiple HTTP Calls in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Access-Hierarchical-Data-from-Web-Service-without-Multiple-HTTP/m-p/418739#M700214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt; color: #333333;"&gt;I have come up with a work around to extract hierarchical web service data in a single HTTP call.&amp;nbsp; It's not ideal, but it works, avoids the potential for data inconsistencies, doesn't require writing data to an XML file, works around the bug with only the first child being returned, and doesn't use macros.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;This is the basic approach: &lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;Load the XML into a fixed width field&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;Concatenate the field values into a variable &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;Load the XML data as per the default script structure as generated by QV, but replace the web service calls with inline loads from your variable.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;Sample script below:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_135040574404397" jivemacro_uid="_135040574404397"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RawXmlTable:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOAD @1:n AS RawXml ,RowNo() AS RowNumber FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:48453/Service.asmx/HierarchicalData"&gt;http://localhost:48453/Service.asmx/HierarchicalData&lt;/A&gt;&lt;SPAN&gt;] (fix, codepage is 1252);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XmlStringTable:&lt;/P&gt;&lt;P&gt;LOAD CONCAT(RawXml,'',RowNumber) AS XmlStringField Resident RawXmlTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET XmlString = Peek('XmlStringField');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRACE $(XmlString);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE RawXmlTable;&lt;/P&gt;&lt;P&gt;DROP TABLE XmlStringTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Start of [HierarchicalData.asmx/hierarchicaldata] LOAD statements&lt;/P&gt;&lt;P&gt;'Children/HierarchicalDataSample':&lt;/P&gt;&lt;P&gt;LOAD Name as ChildName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time as ChildTime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_HierarchicalDataSample_D1F3DE47113B8958&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key to parent table: ArrayOfHierarchicalDataSample/HierarchicalDataSample&lt;/P&gt;&lt;P&gt;INLINE [$(XmlString)] (XmlSimple, Table is [ArrayOfHierarchicalDataSample/HierarchicalDataSample/Children/HierarchicalDataSample]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'ArrayOfHierarchicalDataSample/HierarchicalDataSample':&lt;/P&gt;&lt;P&gt;LOAD Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_ArrayOfHierarchicalDataSample_1509068996212F5B,&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key to parent table: ArrayOfHierarchicalDataSample&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_HierarchicalDataSample_D1F3DE47113B8958&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key for this table: ArrayOfHierarchicalDataSample/HierarchicalDataSample&lt;/P&gt;&lt;P&gt;INLINE [$(XmlString)] (XmlSimple, Table is [ArrayOfHierarchicalDataSample/HierarchicalDataSample]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArrayOfHierarchicalDataSample:&lt;/P&gt;&lt;P&gt;LOAD xmlns:xsi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:xsd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_ArrayOfHierarchicalDataSample_1509068996212F5B&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key for this table: ArrayOfHierarchicalDataSample&lt;/P&gt;&lt;P&gt;INLINE [$(XmlString)] (XmlSimple, Table is [ArrayOfHierarchicalDataSample]);&lt;/P&gt;&lt;P&gt;// End of [HierarchicalData.asmx/hierarchicaldata] LOAD statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 16px; font-family: calibri, verdana, arial, sans-serif;"&gt;This results in the following table structure:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 16px; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;IMG __jive_id="23575" class="jive-image" alt="FoundChildTables.png" src="https://community.qlik.com/legacyfs/online/23575_FoundChildTables.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 16px;"&gt;And returns the correct data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 16px;"&gt;&lt;IMG __jive_id="23582" class="jive-image-thumbnail jive-image" onclick="" alt="FoundChild.png" src="https://community.qlik.com/legacyfs/online/23582_FoundChild.png" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 16px;"&gt;It's not ideal, but it does avoid:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 16px;"&gt;the issue where only the first child node value is being returned&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 16px;"&gt;macros&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 16px;"&gt;writing/reading an XML file&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 16px;"&gt;risk of returning inconsistent data by making multiple HTTP calls&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 16px;"&gt;Hope this helps someone.&amp;nbsp; If anyone has any better ideas, I'm all ears! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 16px;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 16px;"&gt;Graeme&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 16px; font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 16:44:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Access-Hierarchical-Data-from-Web-Service-without-Multiple-HTTP/m-p/418739#M700214</guid>
      <dc:creator />
      <dc:date>2012-10-16T16:44:53Z</dc:date>
    </item>
  </channel>
</rss>

