Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 44420 invoked from network); 11 Jan 2011 13:04:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jan 2011 13:04:53 -0000 Received: (qmail 87608 invoked by uid 500); 11 Jan 2011 13:04:52 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 87406 invoked by uid 500); 11 Jan 2011 13:04:50 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 87387 invoked by uid 99); 11 Jan 2011 13:04:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jan 2011 13:04:48 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of willem.jiang@gmail.com designates 209.85.213.169 as permitted sender) Received: from [209.85.213.169] (HELO mail-yx0-f169.google.com) (209.85.213.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jan 2011 13:04:43 +0000 Received: by yxl31 with SMTP id 31so9010762yxl.0 for ; Tue, 11 Jan 2011 05:04:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=c9mw6JTBQRjAbzsgAETDHVGAi+pvTU73X24WMmjrmRo=; b=sTRv+Tl6t8jbV9cY3K38PmPDTQT1A+UbRN2eC/GDNvb+1ShGNcS9Zvezwcy7e32eh/ 3cy1rYUvk0jNmEtbh5DNFEWpirV4hRiqqiQjfgoDD9Q829nWcJ6Z96K0C+jkRTqpoKxp kVkbIm0mVfGitcYLQH6bJXw9X8MNLAOHry+7c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=StgLAPwmMinp4WJBIIQgcqozAuePGwpTbsvqu5MhU+Njm/z9PoNizCo6ZBX98IrkEj 37Hk9xWXs1r3xxFy3UQFYhTaHHUVGaVpY2PwZGRL7OSnY6ll+ipt8R/IHKsUyjGSWfJl E4mRtk+11sQQecII/1r5fZ2GI6XKJkvTkPU54= Received: by 10.90.96.10 with SMTP id t10mr15875agb.141.1294751062383; Tue, 11 Jan 2011 05:04:22 -0800 (PST) Received: from [192.168.0.158] ([125.33.126.58]) by mx.google.com with ESMTPS id b27sm38889631ana.28.2011.01.11.05.04.20 (version=SSLv3 cipher=RC4-MD5); Tue, 11 Jan 2011 05:04:21 -0800 (PST) Message-ID: <4D2C5552.7040306@gmail.com> Date: Tue, 11 Jan 2011 21:04:18 +0800 From: Willem Jiang User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: users@cxf.apache.org Subject: Re: Effect of an SSL-terminating proxy on autoRewriteSoapAddress References: <4D2B73D8.6050008@spudsoft.co.uk> <4D2BCA40.30501@gmail.com> <20110111084858.40261b4040lyx7c0@91.84.217.110> In-Reply-To: <20110111084858.40261b4040lyx7c0@91.84.217.110> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 1/11/11 4:48 PM, Jim Talbut wrote: > Willem, > > Quoting Willem Jiang : >> On 1/11/11 5:02 AM, Jim Talbut wrote: >>> I can't see any standard way for a java servlet to know that the >>> original request was over https - given that the request it sees isn't. >>> Our load balancer does add a few HTTP headers to the request, so if I >>> could hook the WSDL response with my own code I could set the location >>> correctly - but is that possible? >> >> I think you can interceptor the WSDL query request in your load >> balancer instead of delegate that request to CXF endpoints. >> In this way, you can get the full control of the WSDL port address. >> The only short coming I can see is you need to take care of the >> services WSDL in you code. > Unfortunately the load balancer is a hardware device, we have no ability > to run our code on it :(. > >>> I think I'm stuck with declaring two CXF endpoints, an external one with >>> a published URL and an internal one with autoRewriteSoapAddress. >>> Anyone got any better ideas? >> I don't think current CXF supports two address as you want. > That surprises me. > Can I not have (in spring) two jaxws:endpoint elements with the same > implementor attribute? > Oh, my bad. I misunderstand your meaning. You can do that, but you need to make sure your implementer is multi-thread safe. > Jim > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > -- Willem ---------------------------------- FuseSource Web: http://www.fusesource.com Blog: http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang