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 7AB8817409 for ; Wed, 12 Nov 2014 07:28:12 +0000 (UTC) Received: (qmail 11717 invoked by uid 500); 12 Nov 2014 07:28:12 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 11661 invoked by uid 500); 12 Nov 2014 07:28:12 -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 Received: (qmail 11640 invoked by uid 99); 12 Nov 2014 07:28:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Nov 2014 07:28:11 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=FREEMAIL_REPLY,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of willem.jiang@gmail.com designates 209.85.192.177 as permitted sender) Received: from [209.85.192.177] (HELO mail-pd0-f177.google.com) (209.85.192.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Nov 2014 07:27:46 +0000 Received: by mail-pd0-f177.google.com with SMTP id v10so11665567pde.36 for ; Tue, 11 Nov 2014 23:26:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type:content-transfer-encoding:content-disposition; bh=WcJZDiokbEawO5zonW1eya4zt84ghvpzcyYhKdA6Wj0=; b=AXr4Y+ZCD9cwvoqggYr2Ulw6e56kAPoRMAR8ktPTbjUt4foBP+ifL9sy2Xe59JwvWB DyJJHe5/CD6byEgbue102hN8z0Xk1PYRgWjtdQcZQhAFlyRTsh52Wp8PSFgD7aztRgB0 kPrTDgPqQdC5bwwuhk5IfMzZrtDSlZHNYzA/FEsErN32B0xk25+4/VJaQMkThi/AT7yr zZtynnbTOyWaab2QPOEPV0bKUc7wFv8GWJ+Wq6fMe+Eyyv1XlxnVxZGGP5f9GISOx2fl uWUAELqrUjwz9vXs1dZ1HeCU2uyLbm9hmjkWDj5Wg0BeluXlziOtccdyxxW3bqnm6cFo XdgA== X-Received: by 10.66.248.104 with SMTP id yl8mr45833575pac.2.1415777174745; Tue, 11 Nov 2014 23:26:14 -0800 (PST) Received: from localhost ([111.193.239.253]) by mx.google.com with ESMTPSA id 16sm21283784pdj.42.2014.11.11.23.26.06 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Nov 2014 23:26:08 -0800 (PST) Date: Wed, 12 Nov 2014 15:25:58 +0800 From: Willem Jiang To: users@camel.apache.org Message-ID: In-Reply-To: <1415763805900-5758947.post@n5.nabble.com> References: <1415763805900-5758947.post@n5.nabble.com> Subject: Re: How to configure proxy settings for cxf endpoint used in recipientList X-Mailer: Airmail (249) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org When you use the http-conf:conduit, camel-cxf can pick up right CX=46 bus= which holds the reference the Spring application context from thread loc= al variable. But if you use recipientList, the camel-cxf endpoint could b= e create in different thread other then the thread which creates the Spri= ng application context. As CX=46 support to configure the http client from the WSDL=5B1=5D, you c= an try to do it that way. In Camel 2.15.0 we introduce a=C2=A0CxfEndpointConfigurer which supports = to configure the CX=46 client or the server from Java code. =5B1=5Dhttps://cxf.apache.org/docs/client-http-transport-including-ssl-su= pport.html=23ClientHTTPTransport(includingSSLsupport)-UsingWSDL -- =20 Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang =20 Weibo: =E5=A7=9C=E5=AE=81willem On November 12, 2014 at 1:58:04 PM, Aniruddha (aniruddha.dixit=40gmail.co= m) wrote: > Hi, > =20 > I am using recipientList to dynamically invoke an external webservice a= s > follows: > =20 > =20 > =20 > cxf:=24=7Bheaders.callback.endpoint=7D=3FwsdlURL=3Dclasspath:adapters/c= ommunication/eventmanager/wsdls/event-notify-v1-0.wsdl&data=46ormat=3DPAY= LOAD&portName=3D=7Bhttp://xyz.com/event-notify-v1-0.wsdl=7DEventNotifySOA= P12Port&serviceName=3D=7Bhttp://xyz.com/event-notify-v1-0.wsdl=7DEventNot= ifyService =20 > =20 > =20 > I want this cxf call to go through a proxy server. How to configure pro= xy > setting for cxf used in recipientlist=3F > =20 > I tried configuring =22http-conf:conduit=22 but it didn't go through th= e proxy > server. > =20 > Could you please help=3F > =20 > =20 > =20 > -- > View this message in context: http://camel.465427.n5.nabble.com/How-to-= configure-proxy-settings-for-cxf-endpoint-used-in-recipientList-tp5758947= .html =20 > Sent from the Camel - Users mailing list archive at Nabble.com. > =20