<?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 SOAP Web Service through AccessPoint in Qlik Learning Discussions</title>
    <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/SOAP-Web-Service-through-AccessPoint/m-p/748573#M1256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently trying to integrate a web service call into a Qlik application.&amp;nbsp; I have successfully done this with a Macro that is triggered by a button.&amp;nbsp; The xml response from the web service is saved to a temporary file, a partial reload is done, and the temporary file is deleted.&amp;nbsp; I found a few helpful posts on the Qlik community to set it up.&amp;nbsp; Here is the relevant portion of the macro code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set xmlhttp = CreateObject("Microsoft.XMLHTTP")&lt;BR /&gt;xmlhttp.open "POST",&amp;lt;endpoint&amp;gt;,false&lt;BR /&gt;xmlhttp.send xmlToSend&lt;BR /&gt;Path = ActiveDocument.Evaluate("left(DocumentPath(), index(DocumentPath(), '\', -1))")&lt;BR /&gt;FileName = Path &amp;amp; "response.xml"&lt;BR /&gt;set fso = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;set s = fso.CreateTextFile(FileName, True)&lt;BR /&gt;s.writeline(result)&lt;BR /&gt;s.Close()&lt;BR /&gt;ActiveDocument.DoReload 2, true&lt;BR /&gt;fso.DeleteFile(FileName)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My question is how would I get this to work outside of the Desktop application so that any user accessing the .qvw through AccessPoint is also able to use web service data?&amp;nbsp; I have not found a way to trigger any sort of reload from within the .qvw on AccessPoioint (DoReload or any of the other Reload functions for ActiveDocument and the Reload action for a button).&amp;nbsp; I am able to call the web service from AccessPoint and can set the return value into a variable but I am not able to get the xml response to be reloaded into the appropriate tables for my visualizations.&amp;nbsp; Most of the data can be a day old but we are trying to use a web service to provide a real-time option for the user.&amp;nbsp; I think there may be a way to do this by manually parsing the xml within the macro and using the DynamicUpdateCommand but I am looking for something that feels a little less "hacky".&amp;nbsp; Any tips or examples would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Dec 2014 18:11:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-16T18:11:44Z</dc:date>
    <item>
      <title>SOAP Web Service through AccessPoint</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/SOAP-Web-Service-through-AccessPoint/m-p/748573#M1256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently trying to integrate a web service call into a Qlik application.&amp;nbsp; I have successfully done this with a Macro that is triggered by a button.&amp;nbsp; The xml response from the web service is saved to a temporary file, a partial reload is done, and the temporary file is deleted.&amp;nbsp; I found a few helpful posts on the Qlik community to set it up.&amp;nbsp; Here is the relevant portion of the macro code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set xmlhttp = CreateObject("Microsoft.XMLHTTP")&lt;BR /&gt;xmlhttp.open "POST",&amp;lt;endpoint&amp;gt;,false&lt;BR /&gt;xmlhttp.send xmlToSend&lt;BR /&gt;Path = ActiveDocument.Evaluate("left(DocumentPath(), index(DocumentPath(), '\', -1))")&lt;BR /&gt;FileName = Path &amp;amp; "response.xml"&lt;BR /&gt;set fso = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;set s = fso.CreateTextFile(FileName, True)&lt;BR /&gt;s.writeline(result)&lt;BR /&gt;s.Close()&lt;BR /&gt;ActiveDocument.DoReload 2, true&lt;BR /&gt;fso.DeleteFile(FileName)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My question is how would I get this to work outside of the Desktop application so that any user accessing the .qvw through AccessPoint is also able to use web service data?&amp;nbsp; I have not found a way to trigger any sort of reload from within the .qvw on AccessPoioint (DoReload or any of the other Reload functions for ActiveDocument and the Reload action for a button).&amp;nbsp; I am able to call the web service from AccessPoint and can set the return value into a variable but I am not able to get the xml response to be reloaded into the appropriate tables for my visualizations.&amp;nbsp; Most of the data can be a day old but we are trying to use a web service to provide a real-time option for the user.&amp;nbsp; I think there may be a way to do this by manually parsing the xml within the macro and using the DynamicUpdateCommand but I am looking for something that feels a little less "hacky".&amp;nbsp; Any tips or examples would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 18:11:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/SOAP-Web-Service-through-AccessPoint/m-p/748573#M1256</guid>
      <dc:creator />
      <dc:date>2014-12-16T18:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: SOAP Web Service through AccessPoint</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/SOAP-Web-Service-through-AccessPoint/m-p/748574#M1257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick - for better exposure, could you move this post into the &lt;A href="https://community.qlik.com/space/2051"&gt;App Development&lt;/A&gt; forum?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Dec 2014 17:03:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/SOAP-Web-Service-through-AccessPoint/m-p/748574#M1257</guid>
      <dc:creator>joe_warbington</dc:creator>
      <dc:date>2014-12-28T17:03:22Z</dc:date>
    </item>
  </channel>
</rss>

