Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5183F10510 for ; Mon, 27 Jan 2014 13:47:50 +0000 (UTC) Received: (qmail 80388 invoked by uid 500); 27 Jan 2014 13:47:47 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 79724 invoked by uid 500); 27 Jan 2014 13:47:45 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Delivered-To: moderator for users@camel.apache.org Received: (qmail 81607 invoked by uid 99); 27 Jan 2014 12:36:50 -0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of ganga.aloori@gmail.com does not designate 216.139.236.26 as permitted sender) Date: Mon, 27 Jan 2014 04:36:24 -0800 (PST) From: gangaaloori To: users@camel.apache.org Message-ID: <1390826184940-5746498.post@n5.nabble.com> Subject: How to configure cxf component to use proxy? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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: java.io.IOException: IOException invoking https://xxxx.yyy.com/v1_0/receiver: 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(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1339) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1323) at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:50) at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:223) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:628) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62) ... 50 more Thanks, Ganga Aloori ----- Thanks, Ganga Aloori -- View this message in context: http://camel.465427.n5.nabble.com/How-to-configure-cxf-component-to-use-proxy-tp5746498.html Sent from the Camel - Users mailing list archive at Nabble.com.