Qlik Community

QlikView Integration

Discussion Board for collaboration on QlikView Integration.

Not applicable

Qlikview 12 & QlikviewServerClient (C#)

Hi,

I have been using the Qlikview Dlls to extract document thumbnails and document lists for sometime. But since upgrading to Qlikview 12 server I am unable to connect to the server correct or the responses are not populated.

In particular I use:

server = new QlikViewServer(pointer, "servername", QvClient.Mode.Admin, "username", "password", true);

I then use a mix of methods such as: GetAdminDocList, GetDocumentMetadata, GetDocumentThumbNail.. but it refreshes to connect to the QVS. If I try to connect without the SSL as true, it just returns null or none of the information. This worked perfectly in 11.20 but not in 12 (assuming new security). Is there something I am missing?

Ta

-Chris

1 Reply
rpadin
New Contributor

Re: Qlikview 12 & QlikviewServerClient (C#)

Dear Chris

You need to change the way to acces the documents. Please, try it:

           try

            {

                QMSClient Client;

                string QMS = txtQVS.Text;

                Client = new QMSClient("BasicHttpBinding_IQMS", QMS);

                string key = Client.GetTimeLimitedServiceKey();

                ServiceKeyClientMessageInspector.ServiceKey = key;

                ServiceInfo[] myServices = Client.GetServices(ServiceTypes.All);

                foreach (ServiceInfo service in myServices)

                {

                    if (service.Name.Substring(0, 3) == "QVS")

                    {

                        try

                        {

                            List<DocumentNode> userDocuments = Client.GetUserDocuments(service.ID).ToList();

                            foreach (DocumentNode userDocument in userDocuments.OrderBy(x => x.RelativePath).ThenBy(x => x.Name))

                            {

                                listQVSDocs.Items.Add(userDocument.Name);

                            }

                        }

                        catch (System.Exception ex)

                        {

                            msgText.Text = msgText.Text + "Error: \n " + ex.Message + "\n ";

                        }

                    }

                }

            }

            catch (System.Exception ex)

            {

                msgText.Text = msgText.Text + "Error: \n " + ex.Message + "\n ";

            }

Best regards

Community Browser