Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
When I try the samples of the QMSAPI (QVSSettings & TaskConsole) I get following message: "Service Key is missing".
When I look to the value of the Service Key via following code
MessageBox.Show("Service Key: " + ServiceKeyClientMessageInspector.ServiceKey.ToString());
it does have a value, but when executing
ServiceInfo[]MyQVSInfo = Client.GetServices(ServiceTypes.QlikViewServer);
it says "Service Key is missing".
What am I doing wrong?
Thanks in advance,
Tim
Hi,
try to update the Service Reference of QMSBackendService under "Service References" in Visual Studio ...
Hope this helps!
Best regards
Stefan
I have having the same issue. Any help?
Right syntax for this is
ServiceKeyClientMessageInspector.ServiceKey = QMSClient.GetTimeLimitedServiceKey()
'Fetching the ID of the first QVS resource
Dim qvsServices As List(Of ServiceInfo) = QMSClient.GetServices(ServiceTypes.QlikViewServer)
I dont see any difference.
You might need to update service references in .NET.
I did update but I still get the "Service key is missing" error message.
The answer from this question, by Stefan Backstrand, works to solve the "Service key is missing" error message.
http://community.qlik.com/thread/22286?start=0&tstart=0
13. Add the following XML attribute to the bottom <endpoint ... /> tag of your app.config file: behaviorConfiguration="ServiceKeyEndpointBehavior"
Also, make sure that the value of the constant SERVICE_KEY_HTTP_HEADER in theServiceKeyClientMessageInspector.cs source file is X-Service-Key.