<?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 QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SOAP-Web-Service-through-AccessPoint/m-p/798854#M282115</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>Mon, 29 Dec 2014 15:27:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-29T15:27:06Z</dc:date>
    <item>
      <title>SOAP Web Service through AccessPoint</title>
      <link>https://community.qlik.com/t5/QlikView/SOAP-Web-Service-through-AccessPoint/m-p/798854#M282115</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>Mon, 29 Dec 2014 15:27:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SOAP-Web-Service-through-AccessPoint/m-p/798854#M282115</guid>
      <dc:creator />
      <dc:date>2014-12-29T15:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: SOAP Web Service through AccessPoint</title>
      <link>https://community.qlik.com/t5/QlikView/SOAP-Web-Service-through-AccessPoint/m-p/798855#M282116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you please share the whole macro,I am also trying something similar ,creating csv file thru web service.thank a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 18:41:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SOAP-Web-Service-through-AccessPoint/m-p/798855#M282116</guid>
      <dc:creator />
      <dc:date>2014-12-30T18:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: SOAP Web Service through AccessPoint</title>
      <link>https://community.qlik.com/t5/QlikView/SOAP-Web-Service-through-AccessPoint/m-p/798856#M282117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, here is the complete macro (with company identifying info removed).&amp;nbsp; This is VBScript and you will want to set the security to System Access/Allow System Access.&amp;nbsp; You will want to get xmlToSend to match the xml you send through soapUI (or whatever testing tool you use) and change &amp;lt;endpoint&amp;gt; to the endpoint you want to send your request to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub WS &lt;BR /&gt;mrn = ActiveDocument.Fields("MRN").GetPossibleValues.Item(0).Text&lt;BR /&gt;&lt;BR /&gt;xmlToSend = ""&lt;BR /&gt;xmlToSend = xmlToSend &amp;amp; "&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;" &lt;BR /&gt;&lt;SPAN&gt;xmlToSend = xmlToSend &amp;amp; "&amp;lt;soapenv:Envelope xmlns:soapenv='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;&lt;SPAN&gt;' xmlns:v4='ptnt_care/hlth_info_gthr/epic/lab_orders/v4'&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;xmlToSend = xmlToSend &amp;amp; "&amp;lt;soapenv:Header/&amp;gt;"&lt;BR /&gt;xmlToSend = xmlToSend &amp;amp; "&amp;lt;soapenv:Body&amp;gt;"&lt;BR /&gt;xmlToSend = xmlToSend &amp;amp; "&amp;lt;v4:getLabResults&amp;gt;"&lt;BR /&gt;xmlToSend = xmlToSend &amp;amp; ("&amp;lt;v4:mrn&amp;gt;" &amp;amp; mrn &amp;amp; "&amp;lt;/v4:mrn&amp;gt;")&lt;BR /&gt;xmlToSend = xmlToSend &amp;amp; "&amp;lt;/v4:getLabResults&amp;gt;"&lt;BR /&gt;xmlToSend = xmlToSend &amp;amp; "&amp;lt;/soapenv:Body&amp;gt;"&lt;BR /&gt;xmlToSend = xmlToSend &amp;amp; "&amp;lt;/soapenv:Envelope&amp;gt;"&lt;BR /&gt;&lt;BR /&gt;'Create xmlhttp opject &lt;BR /&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;&lt;BR /&gt;result = xmlhttp.responseText &lt;BR /&gt;result = replace(result, "&amp;amp;gt;", "&amp;gt;")&lt;BR /&gt;result = replace(result, "&amp;amp;lt;", "&amp;lt;")&lt;BR /&gt;&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;&lt;BR /&gt;'Load document with the temp file - DoReload will not show progress dialog&lt;BR /&gt;ActiveDocument.DoReload 2, true&lt;BR /&gt;&lt;BR /&gt;'Delete the temp file&lt;BR /&gt;fso.DeleteFile(FileName)&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 19:44:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SOAP-Web-Service-through-AccessPoint/m-p/798856#M282117</guid>
      <dc:creator />
      <dc:date>2014-12-30T19:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: SOAP Web Service through AccessPoint</title>
      <link>https://community.qlik.com/t5/QlikView/SOAP-Web-Service-through-AccessPoint/m-p/798857#M282118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you find a solution?&amp;nbsp; I was able to call a similar macro in the load script, but the AccessPoint&amp;nbsp; / Publisher refuses to execute the macro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 19:45:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SOAP-Web-Service-through-AccessPoint/m-p/798857#M282118</guid>
      <dc:creator>kevinpintokpa</dc:creator>
      <dc:date>2016-06-17T19:45:54Z</dc:date>
    </item>
  </channel>
</rss>

