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

How to build a REST service with POST method that accepts text/csv instead of JSOn or XML?

Hi there

 

I'm completely new to TALEND and I'm using Talend Open Studio for ESB to try to build a REST service with a POST method to receive simple data in CSV format. I have been playing around with the tRESTREQUEST component and I saw that I had to define an output flow named body with type document, but I can't find a way to configure content-type to text/csv and I keep getting a 415 Unsupported Media Type error message.

Maybe I should use a different component?

Any help will be appreciated.

Labels (2)
1 Reply
Anonymous
Not applicable
Author

Hello,

Rest service usually expect JSON or XML payload, what you have here instead is the query string in the payload.

You could try this solution:route.

cHttp (as server) can perfectly handle incoming data and transfer it to cTalendJob.

Best regards

Sabrina