How to configure cxf component to use proxy?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

How to configure cxf component to use proxy?

Hi Camel Experts,

I'd like to know how and where to configure cxf component to use proxy. I'm using cxf component to invoke a web service which is hosted on the internet and is behind our corporate proxy. I'm afraid if there is no such way as of now. My Camel version is - 2.12.2.

I might get around this issue by providing the proxy details to the jvm or etc which in my opinion is not a good idea as it affects all my other routes as well. I'm looking out for this config per endpoint

As of now I am facing the following exception which I presume is due to proxy config issue. Thanks in advance

Caused by: IOException invoking Unable to tunnel through proxy. Proxy returns "HTTP/1.0 503 Service Unavailable"
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
        at java.lang.reflect.Constructor.newInstance(
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(
        at org.apache.cxf.transport.AbstractConduit.close(
        at org.apache.cxf.transport.http.HTTPConduit.close(
        at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(
        ... 50 more

Ganga Aloori
Ganga Aloori