<?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>article QlikView: Connect to QMS API with Visual Studio in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/QlikView-Connect-to-QMS-API-with-Visual-Studio/ta-p/1716717</link>
    <description>&lt;P&gt;This article explains how to connect to the QMS API in Visual Studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="QlikView" id="qlikView"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Steps:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;H4 id="CreateQMSAPIprojectfromscratch-Createanewproject"&gt;&lt;STRONG&gt;Create a new project&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;Create a new project in Visual Studio (for instance a simple Console Application).&lt;/P&gt;
&lt;H4 id="CreateQMSAPIprojectfromscratch-AddtheQMSservicereference"&gt;&lt;STRONG&gt;Add the QMS service reference&lt;/STRONG&gt;&lt;/H4&gt;
&lt;OL&gt;
&lt;LI&gt;Right-click the&amp;nbsp;&lt;STRONG&gt;References&lt;/STRONG&gt;&amp;nbsp;node of the project in the&amp;nbsp;&lt;STRONG&gt;Solution Explorer&lt;/STRONG&gt;&amp;nbsp;and select "&lt;STRONG&gt;Add Service Reference...&lt;/STRONG&gt;" &lt;BR /&gt;&lt;BR /&gt;(If you cannot find the Solution Explorer at the right of your screen, go to "View" &amp;gt; "Solution Explorer" to show the pane.)&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add service reference.png" style="width: 312px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59603iCBDA7A23E1797702/image-size/large?v=v2&amp;amp;px=999" role="button" title="add service reference.png" alt="add service reference.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="font-family: inherit;"&gt;Type the address to your running&amp;nbsp;QlikView Management Service using port &lt;STRONG&gt;4799&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="font-family: inherit;"&gt;Press the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Go&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;button.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;If the QlikView Server is running on another machine, make sure that the server can be reached and port 4799 is open for incoming connections. &lt;BR /&gt;&lt;BR /&gt;Port&amp;nbsp;&lt;STRONG style="font-family: inherit;"&gt;4799&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;is the default port for&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;QMSBackendWebServicePort&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;, found in the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;QVManagementService.vshost.exe.config&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;file, located in Program Files.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;If the service is found, &lt;STRONG style="font-family: inherit;"&gt;QMSBackendService&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;will appear after a few seconds.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Choose a namespace for the imported types (for instance "&lt;STRONG style="font-family: inherit;"&gt;QMSAPI&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;").&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Press&amp;nbsp;&lt;STRONG style="font-family: inherit;"&gt;OK&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;when done.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Add Service Reference Address and Namespace.png" style="width: 929px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59604i53FF7CDC3F63EB10/image-size/large?v=v2&amp;amp;px=999" role="button" title="Add Service Reference Address and Namespace.png" alt="Add Service Reference Address and Namespace.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 id="CreateQMSAPIprojectfromscratch-AddingServiceKeyhandling"&gt;&lt;STRONG&gt;Adding ServiceKey handling&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;The QMS API cannot be connected out-of-the-box. It needs the HTTP header "X-Service-Key" to be populated with a key retrieved by the QMS before any regular communication may occur.&lt;/P&gt;
&lt;P&gt;This is achieved in .NET by adding a client MessageInspector via an EndpointBehavior attached to the QMS API client.&lt;/P&gt;
&lt;P&gt;Attached to this article&amp;nbsp;is a one-class implementation (QMSClientServiceKeySupport.cs) of this behavior, that can be reused straight away.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Add this class to your project!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Note: Don't forget to replace "YOUR_NAMESPACE_HERE" and "YOUR_QMSAPI_NAMESPACE_HERE" by the correct namespaces.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 id="CreateQMSAPIprojectfromscratch-InitiatingCommunication"&gt;&lt;STRONG&gt;Initiating Communication&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;First, you'll need an instance of the QMSClient class, and then you should initiate the ServiceKey management using the class&amp;nbsp;QMSClientServiceKeySupport just added:&lt;/P&gt;
&lt;PRE&gt;QMSClient&amp;nbsp;qmsClient&amp;nbsp;=&amp;nbsp;new&amp;nbsp;QMSClient();
QMSClientServiceKeySupport.Initiate(qmsClient);
&lt;/PRE&gt;
&lt;P&gt;Note: If you want your client to connect to a different URL you should use the following constructor instead:&lt;/P&gt;
&lt;PRE&gt;QMSClient&amp;nbsp;qmsClient&amp;nbsp;=&amp;nbsp;new&amp;nbsp;QMSClient("BasicHttpBinding_IQMS",&amp;nbsp;"http://yourmachinename:4799/QMS/Service");
&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;*If you wish to use the newest interface - IQMS2 then use QMS2Client class for initiating communication.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Now the code is prepared to start using the API.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Important Note:&lt;/STRONG&gt;&amp;nbsp;The user running the code must be a member of a group called "&lt;STRONG&gt;QlikView Management API&lt;/STRONG&gt;".&lt;/P&gt;
&lt;P&gt;Simply create this group locally on the system if it's not there, and add yourself to it.&lt;BR /&gt;Note that you must log off / on for this change to be activated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you wish to connect to the QMS API using HTTPS instead of HTTP, please follow&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/QlikView-Connecting-to-QMS-API-using-HTTPS/ta-p/1716724" target="_blank" rel="noopener"&gt;QlikView: Connecting to QMS API using HTTPS&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Aug 2021 12:03:12 GMT</pubDate>
    <dc:creator>Damien_V</dc:creator>
    <dc:date>2021-08-03T12:03:12Z</dc:date>
    <item>
      <title>QlikView: Connect to QMS API with Visual Studio</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/QlikView-Connect-to-QMS-API-with-Visual-Studio/ta-p/1716717</link>
      <description>&lt;P&gt;This article explains how to connect to the QMS API in Visual Studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="QlikView" id="qlikView"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Steps:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;H4 id="CreateQMSAPIprojectfromscratch-Createanewproject"&gt;&lt;STRONG&gt;Create a new project&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;Create a new project in Visual Studio (for instance a simple Console Application).&lt;/P&gt;
&lt;H4 id="CreateQMSAPIprojectfromscratch-AddtheQMSservicereference"&gt;&lt;STRONG&gt;Add the QMS service reference&lt;/STRONG&gt;&lt;/H4&gt;
&lt;OL&gt;
&lt;LI&gt;Right-click the&amp;nbsp;&lt;STRONG&gt;References&lt;/STRONG&gt;&amp;nbsp;node of the project in the&amp;nbsp;&lt;STRONG&gt;Solution Explorer&lt;/STRONG&gt;&amp;nbsp;and select "&lt;STRONG&gt;Add Service Reference...&lt;/STRONG&gt;" &lt;BR /&gt;&lt;BR /&gt;(If you cannot find the Solution Explorer at the right of your screen, go to "View" &amp;gt; "Solution Explorer" to show the pane.)&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add service reference.png" style="width: 312px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59603iCBDA7A23E1797702/image-size/large?v=v2&amp;amp;px=999" role="button" title="add service reference.png" alt="add service reference.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="font-family: inherit;"&gt;Type the address to your running&amp;nbsp;QlikView Management Service using port &lt;STRONG&gt;4799&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="font-family: inherit;"&gt;Press the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;Go&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;button.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;If the QlikView Server is running on another machine, make sure that the server can be reached and port 4799 is open for incoming connections. &lt;BR /&gt;&lt;BR /&gt;Port&amp;nbsp;&lt;STRONG style="font-family: inherit;"&gt;4799&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;is the default port for&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;QMSBackendWebServicePort&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;, found in the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;QVManagementService.vshost.exe.config&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;file, located in Program Files.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;If the service is found, &lt;STRONG style="font-family: inherit;"&gt;QMSBackendService&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;will appear after a few seconds.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Choose a namespace for the imported types (for instance "&lt;STRONG style="font-family: inherit;"&gt;QMSAPI&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;").&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Press&amp;nbsp;&lt;STRONG style="font-family: inherit;"&gt;OK&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;when done.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Add Service Reference Address and Namespace.png" style="width: 929px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59604i53FF7CDC3F63EB10/image-size/large?v=v2&amp;amp;px=999" role="button" title="Add Service Reference Address and Namespace.png" alt="Add Service Reference Address and Namespace.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 id="CreateQMSAPIprojectfromscratch-AddingServiceKeyhandling"&gt;&lt;STRONG&gt;Adding ServiceKey handling&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;The QMS API cannot be connected out-of-the-box. It needs the HTTP header "X-Service-Key" to be populated with a key retrieved by the QMS before any regular communication may occur.&lt;/P&gt;
&lt;P&gt;This is achieved in .NET by adding a client MessageInspector via an EndpointBehavior attached to the QMS API client.&lt;/P&gt;
&lt;P&gt;Attached to this article&amp;nbsp;is a one-class implementation (QMSClientServiceKeySupport.cs) of this behavior, that can be reused straight away.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Add this class to your project!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Note: Don't forget to replace "YOUR_NAMESPACE_HERE" and "YOUR_QMSAPI_NAMESPACE_HERE" by the correct namespaces.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 id="CreateQMSAPIprojectfromscratch-InitiatingCommunication"&gt;&lt;STRONG&gt;Initiating Communication&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;First, you'll need an instance of the QMSClient class, and then you should initiate the ServiceKey management using the class&amp;nbsp;QMSClientServiceKeySupport just added:&lt;/P&gt;
&lt;PRE&gt;QMSClient&amp;nbsp;qmsClient&amp;nbsp;=&amp;nbsp;new&amp;nbsp;QMSClient();
QMSClientServiceKeySupport.Initiate(qmsClient);
&lt;/PRE&gt;
&lt;P&gt;Note: If you want your client to connect to a different URL you should use the following constructor instead:&lt;/P&gt;
&lt;PRE&gt;QMSClient&amp;nbsp;qmsClient&amp;nbsp;=&amp;nbsp;new&amp;nbsp;QMSClient("BasicHttpBinding_IQMS",&amp;nbsp;"http://yourmachinename:4799/QMS/Service");
&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;*If you wish to use the newest interface - IQMS2 then use QMS2Client class for initiating communication.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Now the code is prepared to start using the API.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Important Note:&lt;/STRONG&gt;&amp;nbsp;The user running the code must be a member of a group called "&lt;STRONG&gt;QlikView Management API&lt;/STRONG&gt;".&lt;/P&gt;
&lt;P&gt;Simply create this group locally on the system if it's not there, and add yourself to it.&lt;BR /&gt;Note that you must log off / on for this change to be activated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you wish to connect to the QMS API using HTTPS instead of HTTP, please follow&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/QlikView-Connecting-to-QMS-API-using-HTTPS/ta-p/1716724" target="_blank" rel="noopener"&gt;QlikView: Connecting to QMS API using HTTPS&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 12:03:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/QlikView-Connect-to-QMS-API-with-Visual-Studio/ta-p/1716717</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2021-08-03T12:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView: Connect to QMS API with Visual Studio</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/QlikView-Connect-to-QMS-API-with-Visual-Studio/tac-p/2036508#M8366</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;Why are so many operations missed in QMS Backend Service?&lt;BR /&gt;For example -&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview-developer/May2022/Subsystems/QMSAPIref/Content/PIX.Services.V12.Api7.IQMS7.GetExternalProgramTask.htm" target="_self"&gt;GetExternalProgramTask&lt;/A&gt;,&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview-developer/May2022/Subsystems/QMSAPIref/Content/PIX.Services.V12.Api7.IQMS7.GetLoadedDocuments.htm#PIX_Services_V12_Api7_IQMS7_GetLoadedDocuments_System_Guid_PIX_QMSAPI_DataObjects_Enums_QueryTarget_" target="_blank" rel="noopener"&gt;GetLoadedDocuments&lt;/A&gt;&lt;BR /&gt;How can I use them?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BuTbka_0-1676032501376.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100195i4FF6395DF8734FE2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BuTbka_0-1676032501376.png" alt="BuTbka_0-1676032501376.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 12:36:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/QlikView-Connect-to-QMS-API-with-Visual-Studio/tac-p/2036508#M8366</guid>
      <dc:creator>BuTbka</dc:creator>
      <dc:date>2023-02-10T12:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView: Connect to QMS API with Visual Studio</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/QlikView-Connect-to-QMS-API-with-Visual-Studio/tac-p/2038678#M8423</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/137154"&gt;@BuTbka&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post your query with as much detail as possible in the &lt;A href="https://community.qlik.com/t5/integration-extension-apis/bd-p/qlik-sense-integration-extension-api" target="_blank" rel="noopener"&gt;appropriate forum&lt;/A&gt;. We cannot provide further guidance directly in this article, and posting the correct forum will make your post visible to our large user base and our active support agents.&lt;/P&gt;
&lt;P&gt;All the best,&lt;BR /&gt;Sonja&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 11:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/QlikView-Connect-to-QMS-API-with-Visual-Studio/tac-p/2038678#M8423</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2023-02-16T11:46:34Z</dc:date>
    </item>
  </channel>
</rss>

