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: 
Anonymous
Not applicable

tRestRequest JSON POST not working

I'm trying to POST a simple JSON object to tRestRequest and i'm not able to get those JSON fields in the service.

 

It is very very simple rest call, not sure why it is not working.

 

I was trying to see some examples all are using tXMLMap, i dont know why. No simple examples using JSON post call.

 

Please find the attached images.

 

I'm using Postman to call my rest service, the rest service is getting called, but it is not able to convert / pass the JSON content to next stage.

 

 

Labels (5)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

The result of the tRESTRequest component is NOT a parsed json-attribute, instead the component returns the json document it self.

You expect in your job to get the json attributes but this does not work. You need to send the request payload (use the String content) to a tExtractFieldJSON component to parse the json.

View solution in original post

5 Replies
root
Creator II
Creator II

No images are shown. Can you upload the job again so someone can help?
Anonymous
Not applicable
Author

are you not able to see the attachments? because i can.

 

If not , could you please let me know is there any Talend community help page showing the example of such a simple tRestRequest component in working stage?

 

If i write a simple web service call using Spring boot it will not take more than five minutes to make it working... but i'm trying this for more than a day.

Anonymous
Not applicable
Author

The result of the tRESTRequest component is NOT a parsed json-attribute, instead the component returns the json document it self.

You expect in your job to get the json attributes but this does not work. You need to send the request payload (use the String content) to a tExtractFieldJSON component to parse the json.

Anonymous
Not applicable
Author

Hi jilolling,

 

I am also facing similar issue. But even when I am trying to use tExtractFieldJSON it doesnot parse the JSON and fail use the request parameters.

 

Could you please share the steps to use tExtractFieldJSON to parse json request payload

Anonymous
Not applicable
Author

Parsing the request parameters is a matter of the tRESTRequest component.