Http bridgeEndpoint to proxy a distant server

2014-10-09 Thread antb59
Hello, I'm trying to build some kind of Rest proxy with Camel : 1 - A restlet endpoint will receive POST request with JSON body 2 - The body will be transformed into a XML request using freemarker 3 - The xml request will be sent to a distant HTTP server 4 - The HTTP server will send a XML re

Re: Http bridgeEndpoint to proxy a distant server

2014-10-10 Thread antb59
Hello Charles, Thanks for pointing me this error, I missed it ! So it seems that the folllowing line in my route is raising the TypeConvertion issue. http://distantserver:8012/test/identification.xml"; /> Could you explain to me why Camel is trying to convert an HttpMethods to a String in my ca

Re: Http bridgeEndpoint to proxy a distant server

2014-10-10 Thread antb59
Hello, After checks, it seems that the trace you mentionned is not an error. If I do a simple proxy just like in this example : http://camel.apache.org/how-to-use-camel-as-a-http-proxy-between-a-client-and-server.html http://localhost:8012/identification