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: 
ves_diego
Contributor
Contributor

Rest call with JSON input and output

I'm trying to make a POST call to a WebServices. I need to send a JSON to the WebService. The WebService response is another JSON that I need to parse.

This is the job:

0693p00000AGBX0AAP.png

The tJavaRow "Create Json" creates the JSON in the output_row.body, and this is the JSON structure:

{"aspectNames":["dcr:commonDCR"],"relativePath":"/DCR/2020/10/20","name":"Case 00281022","nodeType":"dcr:caseFolder","properties":{"dcr:caseID":"5001w000005vtK8AAI","dcr:caseType":"Recupero Crediti RMPP","dcr:caseCreated":"2020-10-20T16:23:01","dcr:caseSource":"Corrispondenza"}}

How can I use the output_row.body to make a REST call and parse the JSON response?

Thank you,

Diego

Labels (5)
1 Reply
Anonymous
Not applicable

Hello,

You can use JSON as input for r tRESTClient.

The work flow should be: Input--> tXMLMAP(convert data to Jso)--> tRestClient(post) component calling a web service to PUT data in json format.

Please take a look at component reference about:TalendHelpCenter:tRESTClient with related scenarios.

Best regards

Sabrina