Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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:
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
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