0 Replies Latest reply: Jan 24, 2011 9:26 PM by Kamal Kurswani RSS

    QlikViewDistributionService info using GetServices webservice call

    Kamal Kurswani

      <body><p style="margin: 0in 0in 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in;"><b></span></b></p> <p style="margin: 0in 0in 0pt 0.5in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><strong></strong></span></p> <p style="margin: 0in 0in 0pt 0.5in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">I have installed Qlikview server version 10.0.8811.6 (Do not have valid publisher license). </span>Trying to program the reload of Qlikview documents on server, using <b>&ldquo;</b></span><b>External event&rdquo;</span></b>  </span>and </span><b>TriggerEDXTask</b></span>  </span>webservice call. </span></span></p> <p style="margin: 0in 0in 0pt 0.5in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">I am doing below steps   </span></p> <p class="MsoListParagraph" style="text-indent: -0.25in; margin: 0in 0in 0pt 1in; mso-list: l1 level1 lfo2;">1.  </span></span></span>Get the QV Distribution service object for e.g List</span>&lt;ServiceInfo</span>&gt; qvdsServices = apiClient.GetServices(ServiceTypes</span>.QlikViewDistributionService);</span></p> <p class="MsoListParagraph" style="text-indent: -0.25in; margin: 0in 0in 0pt 1in; mso-list: l1 level1 lfo2;">2.  </span></span></span>Get the tasks information i.e List</span>&lt;TaskInfo</span>&gt; taskInfo =  apiClient.GetTasks(qvsServices[0].ID);</span></p> <p style="PADDING-LEFT: 60px"> <divre style="text-indent: -0.25in; margin-left: 1in; mso-list: l1 level1 lfo2;"></divre>3. </span>  </span></span></span></span>Call </span><b>TriggerEDXTask</b> to run the reload task. (Actually I want to control the reload of document based on our custom event.)</span></span></span></p> <p> <divre style="PADDING-LEFT: 60px"></divre></p> <p> <divre></divre></p> <pre></pre> <p style="PADDING-LEFT: 60px"> <divre style="margin-left: 1in;"></divre> </span></span>Function</span> TriggerEDXTask</span> (qdsID</span> As</span> </span></span><a target="_blank" href="http://msdn2.microsoft.com/en-us/library/cey1zx63">Guid</span></a>, taskNameOrID</span> As</span> </span><a target="_blank" href="http://msdn2.microsoft.com/en-us/library/s1wwdcbf">String</span></a>, password</span> As</span> </span><a target="_blank" href="http://msdn2.microsoft.com/en-us/library/s1wwdcbf">String</span></a>,    variableName</span> As</span> </span><a target="_blank" href="http://msdn2.microsoft.com/en-us/library/s1wwdcbf">String</span></a>, variableValues</span> As</span> </span><a target="_blank" href="http://msdn2.microsoft.com/en-us/library/6sh2ey19">List</span></a>(Of</span> </span><a target="_blank" href="http://msdn2.microsoft.com/en-us/library/s1wwdcbf">String</span></a>) ) As</span> </span><a href="http://mk:@MSITStoreC\Program%20Files\QlikView\Management%20Service\QMSAPIDocumentation.chm:">TriggerEDXTaskResult</span></a></p> <p> <divre style="PADDING-LEFT: 60px"></divre></p> <p> <divre></divre></p> <pre></pre> <p class="MsoListParagraph" style="MARGIN: 0in 0in 0pt 1in; PADDING-LEFT: 60px"> </span></p> <p style="MARGIN: 0in 0in 0pt 0.5in; PADDING-LEFT: 60px; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><b>Issue</span></b>: Point # 1 is failing. </span>I am unable to get the </span>QV Distribution service object, taskInfo count is zero. QV Distribution service is installed and running property. Also if I try to get all the services, QlikView Distribution Service information object is missing in the ServiceInfo list. Could anyone please let me know why I am not getting the  QlikViewDistributionService ServiceInfo</span>? Do I need to do any configuration setting changes to get QV Distribution service info object?</span></p> <p style="MARGIN: 0in 0in 0pt 0.5in; PADDING-LEFT: 60px; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"></span></p> <p style="MARGIN: 0in 0in 0pt 0.5in; PADDING-LEFT: 60px; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto">Thanks,</span></p> <p style="MARGIN: 0in 0in 0pt 0.5in; PADDING-LEFT: 60px; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"></span></p></body>