<?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 Connect to different servers without recreating/requiring multiple service references (QMS API) (C# Visual Studio) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Connect-to-different-servers-without-recreating-requiring/m-p/1127677#M1252317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am trying to use the QlikView Management API to interact with different QlikView servers without having to recreate or create an additional service reference. We have multiple servers (dev, production) and I wish to basically be able to programmatically switch between these servers while reusing the same code. When I attempt to use the endpointConfigurationName and remoteAddress constructor to construct a QMSClient object connecting to a server different from the originally hard coded server in the service reference, I get an exception when trying to generate the service key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An unhandled exception of type 'System.ServiceModel.ActionNotSupportedException' occurred in mscorlib.dll&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Additional information: The message with Action '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://ws.qliktech.com/QMS/12/IQMS/GetTimeLimitedServiceKey" rel="nofollow" target="_blank"&gt;http://ws.qliktech.com/QMS/12/IQMS/GetTimeLimitedServiceKey&lt;/A&gt;&lt;SPAN&gt;' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver.&amp;nbsp; Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this is because the hard coded server URI in the service reference does not match the URI I specified as the remoteAddress in the constructor, my question is that is there some way to dynamically switch between these servers completely programmatically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The QMS API documentation mentions that this is the correct way to connect to a different server, and does not specify any additional steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="highlight-comment"&gt;//If you want to connect to a server different from the one used when creating the service reference,&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="highlight-comment"&gt;//do as follows:&amp;nbsp; &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="highlight-comment"&gt;// &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="highlight-comment"&gt;//NTLM only (default installation)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="highlight-comment"&gt;//IQMS apiClient = new &lt;SPAN style="background-color: #3399ff; color: #ffffff;"&gt;QMSClient&lt;/SPAN&gt;&lt;SPAN&gt;("BasicHttpBinding_IQMS", "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://remotehost:4799/QMS/Service" rel="nofollow" target="_blank"&gt;http://remotehost:4799/QMS/Service&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas or has done this before? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2026-01-26T18:19:17Z</dc:date>
    <item>
      <title>Connect to different servers without recreating/requiring multiple service references (QMS API) (C# Visual Studio)</title>
      <link>https://community.qlik.com/t5/QlikView/Connect-to-different-servers-without-recreating-requiring/m-p/1127677#M1252317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am trying to use the QlikView Management API to interact with different QlikView servers without having to recreate or create an additional service reference. We have multiple servers (dev, production) and I wish to basically be able to programmatically switch between these servers while reusing the same code. When I attempt to use the endpointConfigurationName and remoteAddress constructor to construct a QMSClient object connecting to a server different from the originally hard coded server in the service reference, I get an exception when trying to generate the service key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An unhandled exception of type 'System.ServiceModel.ActionNotSupportedException' occurred in mscorlib.dll&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Additional information: The message with Action '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://ws.qliktech.com/QMS/12/IQMS/GetTimeLimitedServiceKey" rel="nofollow" target="_blank"&gt;http://ws.qliktech.com/QMS/12/IQMS/GetTimeLimitedServiceKey&lt;/A&gt;&lt;SPAN&gt;' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver.&amp;nbsp; Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this is because the hard coded server URI in the service reference does not match the URI I specified as the remoteAddress in the constructor, my question is that is there some way to dynamically switch between these servers completely programmatically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The QMS API documentation mentions that this is the correct way to connect to a different server, and does not specify any additional steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="highlight-comment"&gt;//If you want to connect to a server different from the one used when creating the service reference,&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="highlight-comment"&gt;//do as follows:&amp;nbsp; &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="highlight-comment"&gt;// &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="highlight-comment"&gt;//NTLM only (default installation)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="highlight-comment"&gt;//IQMS apiClient = new &lt;SPAN style="background-color: #3399ff; color: #ffffff;"&gt;QMSClient&lt;/SPAN&gt;&lt;SPAN&gt;("BasicHttpBinding_IQMS", "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://remotehost:4799/QMS/Service" rel="nofollow" target="_blank"&gt;http://remotehost:4799/QMS/Service&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas or has done this before? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connect-to-different-servers-without-recreating-requiring/m-p/1127677#M1252317</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
  </channel>
</rss>

