Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

QVS API Support

My question is if there is any help or guidance on how to use the QVS API besides the help file (which is not very helpful...).

It doesn't seem that there is much examples out there on how to use the QVS API. Please can anyone shed some light!

I need to use the API to get detailed license information, ie to whom is licenses assigned and usage, as well as reload scheduled information.

Any help would be appreciated!!!!

57 Replies
Not applicable
Author

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

Not applicable
Author

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

StefanBackstrand
Partner - Specialist
Partner - Specialist

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

Not applicable
Author

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'.

StefanBackstrand
Partner - Specialist
Partner - Specialist

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.



StefanBackstrand
Partner - Specialist
Partner - Specialist

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
Author

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".

StefanBackstrand
Partner - Specialist
Partner - Specialist

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
Specialist
Specialist

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 🙂

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

StefanBackstrand
Partner - Specialist
Partner - Specialist

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.