Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Start task using Rest compoment in Talend

Hello,

I want to start task in QlikSense June 2017, using REST API in Talend.

So I defined component tRestClient in that way :

  • URL --> "https://myserver"
  • Path --> "/qrs/task/start/synchronous"
  • Methode --> POST
  • parameter --> xrfkey = "123456789abcdef"
  • Header --> "X-Qlik-Xrfkey" = "123456789abcdef"
  •                   "Content-Type" = "application/json"
  •                   "Authorization" = "NTLM login:password" (in Base64)

The response was :

Error 403 - Forbidden

The initial authentication request must be a "GET" request in order to be redirected to the authentication module.

So, I had another component with GET method.

Now the respons is --> HTTP 302 Found

I don't understand what is "Moved Temporarily" !

Can somebody help me ?

Thank's a lot.

6 Replies
Vincenzo_Esposito

The Authentication phase does not exactly work as you’re trying to do. Have a quick look here

http://help.qlik.com/en-US/sense-developer/September2017/Subsystems/EngineAPI/Content/GettingStarted...

At the QLIK SENSE ENTERPRISE part

In your case you need to authenticate a process (not a user). So if the process run on a trusted site I suggest you to use the certificates

Not applicable
Author

Hi Vincenzo,

I did already that with a root certificate.

Anyway, I did it again :

  - I have exported certificate from QlikSense,

  - copied file pfx on my computer,

  - convert pfx to pem (using openssl)

  - insert certificate in my JVM (using keytool)

I ran my job.... same errors --> 302 on GET and 403 on POST.

I have surely something wrong, but I don't know what.

Not applicable
Author

I forgot :

  - I removed this item --> "Authorization" = "NTLM login:password" (in Base64)

Vincenzo_Esposito

I normally send certificate along side the authentication request, something I didn’t see on your first message.

Not applicable
Author

Hi Vincenzo,

You're right but I don't know how to link requests with the certificate in JVM's keystore.

Is it a paramater in the header ? or something else ?

Vincenzo_Esposito

The scope in this case  is different, but here you can find an example https://github.com/goldbergjeffrey/QlikSenseTicket.java/blob/master/Ticket.java