<?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: Unable to use or find GetRemoteQmsSettings and SetRemoteQmsSettings in QMS API in PowerShell Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unable-to-use-or-find-GetRemoteQmsSettings-and/m-p/2107592#M1224411</link>
    <description>&lt;P&gt;Hy there i can see your post and i must say&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Check API Documentation:&lt;/STRONG&gt; Make sure you are referencing the correct function names and their parameters as specified in the QMS API documentation. Double-check the syntax, spelling, and parameter requirements.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;API Endpoint and Authentication:&lt;/STRONG&gt; Ensure that you're connecting to the correct API endpoint and using the appropriate authentication method (e.g., API key, token, username/password) to access the API functions.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Import API Module:&lt;/STRONG&gt; If the QMS API provides a PowerShell module, ensure that you have imported the module correctly using the &lt;CODE&gt;Import-Module&lt;/CODE&gt; command. This will make the API functions available in your PowerShell script.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Thanks and regards&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;PaulaFitz &lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2023 07:11:19 GMT</pubDate>
    <dc:creator>PaulaFitz</dc:creator>
    <dc:date>2023-08-21T07:11:19Z</dc:date>
    <item>
      <title>Unable to use or find GetRemoteQmsSettings and SetRemoteQmsSettings in QMS API in PowerShell Script</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-use-or-find-GetRemoteQmsSettings-and/m-p/2104553#M1224374</link>
      <description>&lt;P&gt;I'm trying to use a PowerShell script to get and set the Remote QMS Settings. I'm getting an error. Below is my PowerShell code and error. Please help.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Method I'm trying to use&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview-developer/May2023/Subsystems/QMSAPIref/Content/PIX.Services.V12.Api2.IQMS2.GetRemoteQmsSettings.htm" target="_blank" rel="noopener"&gt;GetRemoteQmsSettings Method | QlikView for developers Help&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;## PowerShell Code
$url = "http://xxxxxxxxxx:4799/QMS/Service"

$service = New-WebServiceProxy -Uri $url -Namespace QlikViewServer -UseDefaultCredential
$serviceKey = $service.GetTimeLimitedServiceKey()

$qmsid = "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

$hdrs = @{}
$hdrs.Add("SOAPACTION","http://ws.qliktech.com/QMS/12/2/IQMS2/GetRemoteQmsSettings")
$hdrs.Add("Content-Type", "text/xml;charset=utf-8")
$hdrs.Add('X-Service-Key',$serviceKey)

$body = @{}
$body = '&amp;lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&amp;gt;
&amp;lt;s:Body&amp;gt;
&amp;lt;GetRemoteQmsSettings xmlns="http://ws.qliktech.com/QMS/12/2/"&amp;gt;
&amp;lt;qmsId&amp;gt;' + $qmsid + '&amp;lt;/qmsId&amp;gt;
&amp;lt;/GetRemoteQmsSettings&amp;gt;
&amp;lt;/s:Body&amp;gt;
&amp;lt;/s:Envelope&amp;gt;'

$res = Invoke-WebRequest -Uri $url -Method Post -Body $body -UseDefaultCredential -Headers $hdrs -UseBasicParsing&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;FONT face="arial black,avant garde"&gt;Error:&lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Invoke-WebRequest : a:ActionNotSupportedThe message with Action '&lt;A href="http://ws.qliktech.com/QMS/12/2/IQMS2/GetRemoteQmsSettings" target="_blank" rel="noopener"&gt;http://ws.qliktech.com/QMS/12/2/IQMS2/GetRemoteQmsSettings&lt;/A&gt;' cannot be processed at the receiver, due to a ContractFilter &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;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 &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 13:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-use-or-find-GetRemoteQmsSettings-and/m-p/2104553#M1224374</guid>
      <dc:creator>pkeertipati</dc:creator>
      <dc:date>2023-08-10T13:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use or find GetRemoteQmsSettings and SetRemoteQmsSettings in QMS API in PowerShell Script</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-use-or-find-GetRemoteQmsSettings-and/m-p/2107592#M1224411</link>
      <description>&lt;P&gt;Hy there i can see your post and i must say&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Check API Documentation:&lt;/STRONG&gt; Make sure you are referencing the correct function names and their parameters as specified in the QMS API documentation. Double-check the syntax, spelling, and parameter requirements.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;API Endpoint and Authentication:&lt;/STRONG&gt; Ensure that you're connecting to the correct API endpoint and using the appropriate authentication method (e.g., API key, token, username/password) to access the API functions.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Import API Module:&lt;/STRONG&gt; If the QMS API provides a PowerShell module, ensure that you have imported the module correctly using the &lt;CODE&gt;Import-Module&lt;/CODE&gt; command. This will make the API functions available in your PowerShell script.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Thanks and regards&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;PaulaFitz &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 07:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-use-or-find-GetRemoteQmsSettings-and/m-p/2107592#M1224411</guid>
      <dc:creator>PaulaFitz</dc:creator>
      <dc:date>2023-08-21T07:11:19Z</dc:date>
    </item>
  </channel>
</rss>

