<?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 authentication in calling a webservice in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/authentication-in-calling-a-webservice/m-p/1137612#M897697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to call a webservice with basic authentication.&lt;/P&gt;&lt;P&gt;I could call the webservice and load the data into qlikview ,But how can&amp;nbsp; I authenticate the webservice with basic username and password.&lt;/P&gt;&lt;P&gt;I have tried passing the username and password in url but it doesn't give desired results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function getData()&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Set xmlhttp = CreateObject("Microsoft.XMLHTTP")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set objXML2 = CreateObject("Microsoft.XMLDOM")&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;call xmlhttp.open("GET", "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://Username:Password@url" rel="nofollow" target="_blank"&gt;http://Username:Password@url&lt;/A&gt;&lt;SPAN&gt;",False)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlhttp.setRequestHeader "Authorization", "Basic dXNlcm5hbWU6cGFzc3dvcmQ="&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlhttp.setRequestHeader "Content-Type", "text/xml"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlhttp.send ""&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; getData = result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ThankYou.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>authentication in calling a webservice</title>
      <link>https://community.qlik.com/t5/QlikView/authentication-in-calling-a-webservice/m-p/1137612#M897697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to call a webservice with basic authentication.&lt;/P&gt;&lt;P&gt;I could call the webservice and load the data into qlikview ,But how can&amp;nbsp; I authenticate the webservice with basic username and password.&lt;/P&gt;&lt;P&gt;I have tried passing the username and password in url but it doesn't give desired results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function getData()&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Set xmlhttp = CreateObject("Microsoft.XMLHTTP")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set objXML2 = CreateObject("Microsoft.XMLDOM")&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;call xmlhttp.open("GET", "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://Username:Password@url" rel="nofollow" target="_blank"&gt;http://Username:Password@url&lt;/A&gt;&lt;SPAN&gt;",False)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlhttp.setRequestHeader "Authorization", "Basic dXNlcm5hbWU6cGFzc3dvcmQ="&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlhttp.setRequestHeader "Content-Type", "text/xml"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlhttp.send ""&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; getData = result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ThankYou.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/authentication-in-calling-a-webservice/m-p/1137612#M897697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

