Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Invalide Call with GetWebTicket with PHP app

Hello,

I'm devloping a web portal that needs to get access a QlickView Server. I am trying to get a webTicket as shown in the QlickView example with PHP. However I got a "Invalid call" when i try to get this webTicket.

This server got a white list and the portal is allowed to access it.

This portal is on the same server than an other portal that got access to QlickView but this other one is develop with Java, that means the server got the right config.

The server is on a IIS server and it's a QV11.

ConfigServQV.png

Am i right to think the issu comes from my code ?

define('URL', 'http://' . $server . ':80/QvAJAXZfc/GetWebTicket.aspx');

$proxy = 'XX.XX.XX.XX:3128';

//I generate this line

$xml ='<?xml version="1.0"?><Global method="GetWebTicket"><UserId>user</UserId></Global>';

  $ch = curl_init();

    curl_setopt($ch, CURLOPT_URL, URL);

    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

    curl_setopt($ch, CURLOPT_PROXY, $proxy);

    curl_setopt($ch, CURLOPT_POSTFIELDS, $xmldata);

    //Request ticket

    $ticket = curl_exec($ch);

then i got : <result><message text="Invalid call" /></result> instead of : <_retval_>ticket</_retval_>

I don't know what is wrong with this code.

Thanks for helping me out.

1 Reply
Not applicable
Author

Any idea ? I've seen a lot of people with the same issue but without any answer .