<?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: Need to call webservice macro from load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871562#M1005076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like your macro only makes a HTTP GET to a web source and retrieves XML data. Why do you not just load this as an XML source directly in the load script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 May 2015 00:46:41 GMT</pubDate>
    <dc:creator>ToniKautto</dc:creator>
    <dc:date>2015-05-17T00:46:41Z</dc:date>
    <item>
      <title>Need to call webservice macro from load script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871559#M1005073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my QV,&amp;nbsp; I have&amp;nbsp; macro to call&amp;nbsp; webservice&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function &lt;STRONG&gt;getAirportWSDL&lt;/STRONG&gt;(vInput)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vURL = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.webservicex.com/airport.asmx/getAirportInformationByISOCountryCode?CountryAbbrviation=" rel="nofollow"&gt;http://www.webservicex.com/airport.asmx/getAirportInformationByISOCountryCode?CountryAbbrviation=&lt;/A&gt;&lt;SPAN&gt;"+ vInput&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'set txt1 = ActiveDocument.Variables("vXMLSent")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'txt1.setContent "Null", true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Create xmlhttp opject &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set xmlhttp = CreateObject("Microsoft.XMLHTTP")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlhttp.open "GET", vURL, false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlhttp.setRequestHeader "Content-Type", "text/xml"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlhttp.send ""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = xmlhttp.responseText&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = replace(result, "&amp;amp;gt;", "&amp;gt;")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = replace(result, "&amp;amp;lt;", "&amp;lt;")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set txt = ActiveDocument.Variables("vXMLReceived")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; txt.setContent result, true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'getAirportWSDL = vInput&lt;/P&gt;&lt;P&gt;End Function&amp;nbsp; &lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;in my load script,after&amp;nbsp; reloading,&amp;nbsp;&amp;nbsp; it is not fetching any values to &lt;STRONG&gt;vXMLReceived&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;let vXMLReceived&amp;nbsp; = ' ';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET Creat =&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;getAirportWSDL&lt;/STRONG&gt;( 'BH');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help, would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Umesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 16:44:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871559#M1005073</guid>
      <dc:creator>sbumeshqlik</dc:creator>
      <dc:date>2015-05-15T16:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need to call webservice macro from load script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871560#M1005074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't access the ActiveDocument from a VBscript-function that you call from a Load Script. The ActiveDocument hasn't been intialized yet. So you will have to return the result as a return result from the function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; getAirportWSDL = result&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;End Function&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;and then the variable Creat get the result as a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET Creat = getAirportWSDL('BH');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest that you rename the variable to resultAirport&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET resultAirport = getAirportWSDL('BH');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This variable you can easily access in your application once the Load Script has finished running and the application has started.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2015 23:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871560#M1005074</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-05-16T23:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need to call webservice macro from load script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871561#M1005075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="2015-05-17 #1.PNG" class="jive-image image-1" src="/legacyfs/online/86763_2015-05-17 #1.PNG" style="height: 341px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-05-17 #2.PNG" class="jive-image image-2" src="/legacyfs/online/86764_2015-05-17 #2.PNG" style="height: 120px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-05-17 #3.PNG" class="jive-image image-3" src="/legacyfs/online/86765_2015-05-17 #3.PNG" style="height: 284px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2015 23:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871561#M1005075</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-05-16T23:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need to call webservice macro from load script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871562#M1005076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like your macro only makes a HTTP GET to a web source and retrieves XML data. Why do you not just load this as an XML source directly in the load script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 May 2015 00:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871562#M1005076</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2015-05-17T00:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need to call webservice macro from load script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871563#M1005077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;Thanks, a lot.&lt;/P&gt;&lt;P&gt;Would, appreciate, if you Can please let me know how to&amp;nbsp; parse xml string &lt;STRONG&gt;resultAirportXML&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 May 2015 02:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871563#M1005077</guid>
      <dc:creator>sbumeshqlik</dc:creator>
      <dc:date>2015-05-17T02:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need to call webservice macro from load script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871564#M1005078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should consider Toni's good advice since a load statement will help you parse the XML properly. If you tell more about how you intend to use the data in your application it would be easier for us to give you further advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a small XML-payload like this service it is rather straight forward anyway to parse it manually. Where do you prefer to have the code? In the load script or in VBScript? VBScript has some limitations as to how you can run it and how efficiently it will run on a server. If you do everything in the load script it will be quite easy to do the same in Qlik Sense in the future whereas a VBScript solution has to be converted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 May 2015 07:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871564#M1005078</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-05-17T07:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need to call webservice macro from load script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871565#M1005079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;Thanks, in that case,&amp;nbsp; would prefer to have, XML string parsing, in QV LOAD script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 May 2015 15:26:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871565#M1005079</guid>
      <dc:creator>sbumeshqlik</dc:creator>
      <dc:date>2015-05-17T15:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need to call webservice macro from load script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871566#M1005080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you consider your question answered you could close this thread and I will have something for you on your new question on how to parse XML in the Load Script. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 May 2015 16:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871566#M1005080</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-05-17T16:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need to call webservice macro from load script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871567#M1005081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 May 2015 22:49:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871567#M1005081</guid>
      <dc:creator>sbumeshqlik</dc:creator>
      <dc:date>2015-05-17T22:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need to call webservice macro from load script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871568#M1005082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you start a new question with for example "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;XML string parsing, in QV LOAD script" as a title - I can respond and upload something I have as a response to that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 06:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871568#M1005082</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-05-18T06:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need to call webservice macro from load script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871569#M1005083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, for all your help.&amp;nbsp;&amp;nbsp; Will start a new question about XML String Parsing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 13:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871569#M1005083</guid>
      <dc:creator>sbumeshqlik</dc:creator>
      <dc:date>2015-05-20T13:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need to call webservice macro from load script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871570#M1005084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petter,&lt;/P&gt;&lt;P&gt;Started a new question about  "XML string parsing, in QV LOAD script"&lt;/P&gt;&lt;P&gt;enclosed URL below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;https://community.qlik.com/message/779723?et=watches.email.thread#779723t&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Mon, May 18, 2015 at 2:17 AM, Petter Skjolden &amp;lt;qcwebmaster@qlikview.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 May 2015 21:44:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-call-webservice-macro-from-load-script/m-p/871570#M1005084</guid>
      <dc:creator>sbumeshqlik</dc:creator>
      <dc:date>2015-05-23T21:44:07Z</dc:date>
    </item>
  </channel>
</rss>

