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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
himanshup
Contributor III
Contributor III

How do I pass query parameter and x-www-urlencoded key value pair in tRESTClient

Hello,

In postman, I have the following URL for POST :

https://some.site.com/sharing/rest/community/users/<username>/disable?token=<tokenvalue>
In the body, I have to use key-value pair for x-www-urlencoded

 

himanshup_0-1733267583370.png

 

 

in params, I am passing:

himanshup_1-1733267665263.png

I have successfully tested this in postman, However, I am unable to get it working in Talend Studio 8.

My question is:
How do I accommodate both query parameter (token in my example); and x-www-encoded form value in tRESTClient for a POST API call? 

 

Thank you.

 

Talend error:

ERROR] 14:54:56 org.apache.cxf.jaxrs.utils.JAXRSUtils- No message body reader has been found for class org.dom4j.Document, ContentType: text/plain;charset=utf-8

himanshup_3-1733267977296.png

 

 

Labels (2)
1 Solution

Accepted Solutions
himanshup
Contributor III
Contributor III
Author

I was able to resolve the issue.

In the tRESTClient component, I switched the Accept Type option to 'any' and the job completed successfully.

himanshup_0-1733339443836.png

 

View solution in original post

1 Reply
himanshup
Contributor III
Contributor III
Author

I was able to resolve the issue.

In the tRESTClient component, I switched the Accept Type option to 'any' and the job completed successfully.

himanshup_0-1733339443836.png