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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] How to pass POST data to tRESTRequest Component properly

I've followed the tutorial on creating RESTful Web Services from: http://talendforge.org/tutorials/tutorial.php?language=english&idTuto=104
But the tutorial is a bit lacking on creating a POST REST Web Service.
I've played around it a bit but I'm not sure why the payload passed to the tRESTRequest doesn't propagate properly.
I ticked the "Log messages" option in tRESTRequest so I saw that the payload is received by the tRESTRequest component. But after the tXMLMap, the value of the payload is already null.
I'm attaching an image of the job components, including the component view of the tRESTRequest and tXMLMap, the rest client which I used to send the post request, and the logs of the result.
Thanks in advance.
0683p000009MCyZ.png 0683p000009MCya.png 0683p000009MCzl.png
Labels (4)
11 Replies
davidferguson
Contributor III
Contributor III

@Snooops

one hour is probably a record time to be honest - I'd have been over the moon if I understood it that quick!

 

milver
Contributor
Contributor

URL: https://help.talend.com/r/7NvFnkWpbH8Gy3Rm6mUXnw/VU66bkh2o5KJEbjJZHac2w

 

If you specify URI parameters in the output flow schema, you might need to define what type of parameter it is in the Comment field of the schema. By default, if you leave the Comment field empty, the parameter is considered as a Path parameter. Below is a list of supported Comment values:

  • empty or path corresponds to the default @PathParam,
  • query corresponds to @QueryParam,
  • form corresponds to @FormParam,
  • header corresponds to @HeaderParam.
  • matrix corresponds to @MatrixParam.
  • multipart corresponds to the CXF specific @Multipart, representing the request body. It can be used only with POST and PUT HTTP methods.
  • 0693p00000C7k8yAAB.png