Qlik Community

QlikView Deployment

Discussion Board for collaboration related to QlikView Deployment.

Not applicable

QVS API Support

I did this and I get the error: "Service key is missing". (trying Taskconsole app in samples)

Not applicable

QVS API Support

Stephan,

I´m trying to be able to add or remove a user from the Authorization List of a Document, have you ever tried that?

I managed to get the list of documents, and the users that they have on Authorization, but i cannot figure out how to modify the DocumentMetaData.

Thanks in advance!

Pablo

Employee
Employee

QVS API Support

Skoezzi; what version of Qlikview Server are you using? And are you using the web service from that servers QMS service?

Not applicable

QVS API Support

I'm using version 10 R1. I changed the default QMS service to my servers QMS service without any problem. Its just giving 'service key is missing'.

Highlighted
Employee
Employee

QVS API Support

Skoezzi; I'm not sure what you refer to with R1 - is that IR (8715) or SR1 (8811, 8815)?

Anyways; can you make sure that this step is done (from the API documentation in SR1 (8811))?

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 the ServiceKeyClientMessageInspector.cs source file is X-Service-Key.



Employee
Employee

QVS API Support

Pablo; you need to use the corresponding method SetDocumentMetaData. Extract the information from the API with GetDocumentMetaData, change the data, and re-insert it with the Set.. method.

Not applicable

QVS API Support

Stefan,

Thanks for the reply. I'm refering to SR1 8815.

I made those changes in my app.config & ServiceKeyClientMessageInspector.cs, but I still get "Service Key is missing".

Employee
Employee

QVS API Support

Ok, the I would recommend that you walk through the steps in the documentation again, you'll find the chapter named "Service key injection sample" in there. You can find the documentation (.chm) under QEMC > System > Setup > Management Service (top node).

amien
Valued Contributor

QVS API Support

Dear herman,

Check the attachment. It's a working example of how to get CAL licence information and deleting/quarantaine users. Using C++ and QVS API.

Both named and document CAL's.

it took me hours to figure this out! So some applause is welcome Smiley Happy

i'm sure i make more people happy with this!

Employee
Employee

QVS API Support

Amien; your example is in C#, not C++ as you suggested. Just to avoid confusion.

Skoezzi; I still think that the change haven't "hit through" in the project yet. Did you hit "Build" after you made the changes and ran the project?

Make sure the

behaviorConfiguration="ServiceKeyEndpointBehavior"

is in the app.config in the right place. And remember that is you update the service reference from the QVS, this setting will be overwritten and needs to be applied again.

Community Browser