Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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!!!!
Use the method GetDocumentTask(). It takes "DocumentTaskID" and "Scope" as parameters. You can get the Document task ID from a number of methods, but if you do not have it listed, you will probably have to go via GetSourceDocumentFolders, GetSourceDocumentNodes, GetTasksforDocument and then from there extract the task id and send into GetDocumentTask.
Thank you Stefan. It worked fine.
I have another issues now. While I was developing the website, I could use the API. After I published the website, I get a "Forbidden" server error on the pages that uses the API. When I do a test to see who the current user identity is when running the website in the deployed environment, I get my username back so it should have worked.
Do you have any ideas how I could solve this?
Stefan,
Thanks a lot for the help provided. I have succesfully created all the functions i need.
The problem is that i have done them in C#, but i have converted it to VB because i need to mix it up with another code i already have. Now when i converted it to VB, i had to convert also the classes ServiceKeyBehaviorExtensionElement, ServiceKeyClientMessageInspector and ServiceKeyEndpointBehavior, but something seems to not work because the function QMSClient.GetServices(ServiceTypes.QlikViewServer) doesn´t get me an ID that i can then pass to the other functions.
Do you have any ideas? Have you happened to work it out on VB?
thanks
Pablo
Hello Amien, I cant find the the attachment for managing CALs etc you put in as a response to this topic. Could you put it up again for me, it would be very helpful for me - would save me hours
regards,
Johan
Does anyone have an example for managing CALs using the API?
I am also interested in finding out how to unassign a CAL programatically. I am able to use the API to list the CALs but I can't find any methods to un-assign a CAL. Below is how I am listing them:
QMSBackendClient apiClient = new QMSBackendClient();
ServiceKeyClientMessageInspector.ServiceKey = apiClient.GetTimeLimitedServiceKey();
List<ServiceInfo> qvsServices = apiClient.GetServices(ServiceTypes.QlikViewServer);
CALConfiguration NamedCALConfig = apiClient.GetCALConfiguration(qvsServices[0].ID, CALConfigurationScope.NamedCALs);
CALConfiguration.CALConfigurationNamedCALs namedcals = NamedCALConfig.NamedCALs;
foreach (AssignedNamedCAL cal in namedcals.AssignedCALs)
{
Console.WriteLine(String.Concat(cal.UserName, "|", cal.QuarantinedUntil, "|", cal.LastUsed));
}
Can you send me your code? I am having a hard time trying to implement this into my current program. I think I am missing a service reference somewhere.
Hi Stefan,
I am able to create and built a sample in console application but the same is not working in ASP.net application.
Could you please provide a sample code or step by step guide using ASP.net application.
especially step 10-13 in Qlikview Management API help file.
Thank you.
Venkatesh
i think SaveCALConfiguration could be the call you are looking for.
Can anyone help me
I am getting the following error when executing my project.
The type 'Qv_License_Management.Service_Support.ServiceKeyBehaviorExtensionElement, Qv_License_Management, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' registered for extension 'serviceKeyBehavior' could not be loaded. (C:\Users\e0615022\documents\visual studio 2010\Projects\Qv License Management\Qv License Management\bin\Debug\Qv License Management.vshost.exe.config line 12)
Attached my project.