2

I am writing a camel proxy route to invoke an external web service. It so happens that the payload of the target service is pretty big. How do I handle this scenario in the route. Coming from OSB background, in OSB, this is done by using chunked streaming mode. How can we achieve similar results in Apache camel.

The issue that I am facing with the normal payload data format route is that invocations are failing with Control Character issues as explained in my previous question : Apache Camel CXF - Error Illegal character ((CTRL-CHAR, code 31)

Sumit Baurai
  • 233
  • 1
  • 12

1 Answers1

0

You should consider Jetty, Servlet or Http4 (better control on the request) camel components. Theses http endpoints are designed to proxify http requests. With bridgeEndpoint and disableStreamCache options, you can create a http proxy with streaming without loading the payload in memory.

Thomas
  • 1,008
  • 3
  • 16
  • 34
  • At the moment, I am using the cxf component to proxy the webservices so that I dont have to construct the Soap response / fault structures. If I use the http4 camel component, would that still be taken care of or would I have to construct the response ... – Sumit Baurai Dec 05 '18 at 11:04