Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

QVS Management API

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

7 Replies
Stefan_Walther
Employee
Employee

Hi,

try to update the Service Reference of QMSBackendService under "Service References" in Visual Studio ...

Hope this helps!

Best regards
Stefan

Not applicable
Author

I have having the same issue. Any help?

danielrozental
Master II
Master II

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)

Not applicable
Author

I dont see any difference.

danielrozental
Master II
Master II

You might need to update service references in .NET.

Not applicable
Author

I did update but I still get the "Service key is missing" error message.

Not applicable
Author

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.