You are not logged in.
Announcement
Unanswered posts
|
Pages: 1

Hello all,
Just a few questions about the component tRestRequest:
-Why the received request need an header content type application/xml ? (without header it doesn't work)
=>How can I receive post data (which contains no header, just tags and datas) ?
Thank you for your help !
Offline
Hi Minchi,
well - I believe it is fully ok to ask for content-type before processing data.
IMHO - I would try to use a camel proxy route - to receive a http request and add a content-type header..
http->SetHeader->http
Gabriel
Offline

Thanks, nice suggestion but in fact:
My job is deployed at the endpoint http://myurl:8040/services/servcieO2 (REST service)
I don't control the message sent but i need an xml header to receive datas properly ("content-type" "application/xml")
Can I do this directly in my job ?
I think I need a component like chttp but that Listen the request like tRestRequest, then add the header with cSetHeader and then recall my job.
Last edited by minchi (2012-06-22 13:13:40)
Offline
Pages: 1