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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Can't POST an XML file to a Route

Hello everyone, I'm REALLY new to the Talend world, and I'm starting my adventure from Talend ESB.
What I need to do: I need to expose a REST service that can receive an XML file and will redirect it to a Talend Job for some Business Logic.
What I've Tried: Here I show you my Jobs and Route.
Job n°1 - The REST Client sending the XML file
This client takes an XML file from the file system, map it into the body (document) and sends it through the POST method called "sendViaggio"
http://postimg.org/image/idtnibcph/
Route - The REST service that routes the XML file to the Job n°2
]http://postimg.org/image/gjgt0kpp1/
Job n°2 - The one who do some business logic
]http://postimg.org/image/wvquqb40l/

My problem: The client doesn't sand anything to the Route, or actually, it sends something with an empty body.
Here you can see the error on the Job n°1:
500|No message body writer has been found for response class MessageContentsList.

Here you can see the WARN on the Route:
: org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor - No message body writer has been found for response class MessageContentsList.
What am I doing wrong?
Labels (4)
2 Replies
Anonymous
Not applicable
Author

This is happening because you are not using a tRouteOutput in your Job no.2. The cCXFRS expects to return a XML/JSON document, but as the cTalendJob is not sending anything back, there is nothing to return. Hence the message. If you add a tRouteOutput and configure it's "body" response to be a XML document, this will work.
Anonymous
Not applicable
Author

Thank you, this solution worked 0683p000009MA9p.png