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!!!!
This is not an object that's specifically a part of the API code - it's .NET behavior. You haven't defined that generic object lists should be of the type List<>, but Array[]. Array[] does not have .Add, but List<> does.
If you got to the Solution Explorer > (Project) > Services References > (QMS backend) > right click > Service Reference Settings.. > Collection type. Set this to "System.Collections.Generic.List" instead. You might need to re-build the solution for this (Ctrl+Shift+B).
You could as well use Array[] if you are more comfortable with that, but in my opinion it will only limit usage of API object lists, since List<> is a very powerful enumerable collection.
Thanks, that worked!
I´m sorry, i´m a newby at C#, and i´m doing my best to get this to work.
Now, after changing that, when i start debugging, the instance of the BackEndClient throws me an error:
No se pudo cargar una sección de configuración de extremo para el contrato 'QMSBackendService.IQMSBackend' porque se encontró más de una configuración de extremo para dicho contrato. Indique la sección de configuración de extremo preferida por nombre.
All i´m doing is: QMSBackendClient Client = new QMSBackendClient();
Thanks
Pablo
What does your app.config contain?
In the solution explorer, right-click the service reference to the API service and choose Configure Service Reference. Under Data Type, change the Collection Type to System.Collections.Generic.List
In the solution explorer, right-click the service reference to the API service and choose Configure Service Reference. Under Data Type, change the Collection Type to System.Collections.Generic.List
?
I fixed the app.config.
For some reason, there were some lines duplicated.
Thanks for your help.
Pablo
I'm also interested in the documentation for the management api. I can't find any documentation about the individual calls, parameters or results. Supposedly, everything that's available from QEMC is in the api but I haven't found anything for the list of user sessions and the documents that they have open.
Every method, with parameter setup and expected return values and types in the QMS backend client is documented in the .chm help file which can be downloaded from the QEMC. Go to System > About, click on the node "Management Service" (top node) and you'll see the documentation link. If you download the file from a remote server, as in not localhost, make sure that you open the properties for the .chm file and click "Unblock" before opening it, otherwise pages in the file will be blocked, since it is not trusted if downloaded from a remote location.
Stefan, it seems like you know what you're talking about. Do you know how I can get the reload schedule for a document? I can get the Tasks for a document and I can see when the task was started and finished, but I need to see how it's scheduled.
I've asked in a previous post, but didn't receive any helpful answers.
Thanks