Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can't get the Get Ticket authentication example to work with QlikView 10

Does anyone have a working get ticket example that works with QlikView 10 or can give me a pointer as to what I'm doing wrong? The example that's included in the Authentication section from the SDK refuses to return a ticket for me. All it did was give me a blank alert box when I clicked on the "Ticket" button after I replaced the server and user placeholders.

Here is what I'm trying to do:

The url I'm passing in is http://ServerName/QvAJAXZfc/qvsviewclient.aspx?admin=<Global method="GetTicket"><UserId>AnotherUser</UserId></Global>

"ServerName" is the name of our server and "AnotherUser" is a valid user.

I can see the initial xmlhttp.open's POST request in the server log but all it does is return a "Empty Request" in the result message text. The same happens with a GET.

If I use http://ServerName/QvAJAXZfc/qvsviewclient.aspx?cmd=<Global method="GetTicket"><UserId>AnotherUser</UserId></Global> with the same parameters, I get a "failed to open document, file not found" error in the resulting XML.

Finally, if I first run http://ServerName/QvAJAXZfc/Authenticate.aspx and then run the second url, I still get the same error in the returned XML but on the server log, it does create a client and issue a ticket. However, the client is using my username and not the one from parameter I passed in, "AnotherUser".

Thanks for any help on this matter.

10 Replies
andries_g_t
Partner - Contributor III
Partner - Contributor III

jsn

Hi

I used this URL to try and get a ticket:

http://xx.xx.xx.xx/QvAJAXZfc/GetTicket.aspx?admin=%3CGlobal%20method=%22GetTicket%22%3E%3CUserId%3E_...

I only get the following message:

<result>

<message text="Invalid call"/>

</result>

I replaced WetTicket with GetWebTicket but that also didn't work.

I tried to use the tool created by Martijn Olivier, but I get this error:

Object reference not set to an instance of an object.

So I'm not getting this to work at all. I've added trusted IPs in the config.xml, still can't get it to work.

Please assist?