Return-Path: Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: (qmail 13144 invoked from network); 6 Jul 2009 14:31:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jul 2009 14:31:13 -0000 Received: (qmail 75030 invoked by uid 500); 6 Jul 2009 14:31:23 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 74945 invoked by uid 500); 6 Jul 2009 14:31:23 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 74935 invoked by uid 99); 6 Jul 2009 14:31:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 14:31:23 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.40.44.35] (HELO smtprelay.hostedemail.com) (216.40.44.35) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 14:31:12 +0000 Received: from filter.hostedemail.com (ff-bigip1 [10.5.19.254]) by smtprelay03.hostedemail.com (Postfix) with SMTP id 740F2233CF7F for ; Mon, 6 Jul 2009 14:30:51 +0000 (UTC) X-Spam-Summary: 50,0,0,f7e00fff0e61d73e,d41d8cd98f00b204,dkulp@apache.org,dev@cxf.apache.org:willem.jiang@gmail.com,RULES_HIT:355:379:599:601:958:960:967:973:988:989:1021:1260:1277:1311:1312:1313:1314:1345:1358:1359:1437:1515:1516:1518:1519:1534:1541:1593:1594:1595:1596:1711:1730:1747:1766:1792:2393:2525:2553:2560:2563:2682:2685:2693:2857:2859:2900:2933:2937:2939:2942:2945:2947:2951:2954:3022:3027:3353:3865:3866:3868:3869:3870:3871:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4184:4321:5007:6118:6261:7679:7901:7904:8957:8985:9025:9072:9388:10004,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fu,MSBL:none,DNSBL:none,Custom_rules:0:0:0 X-Session-Marker: 64616E406B756C702E636F6D X-Filterd-Recvd-Size: 2780 Received: from server.dankulp.com (server1.dankulp.com [66.207.172.168]) (Authenticated sender: dan@kulp.com) by omf03.hostedemail.com (Postfix) with ESMTP for ; Mon, 6 Jul 2009 14:30:51 +0000 (UTC) Received: by server.dankulp.com (Postfix, from userid 5000) id DF87327E0003; Mon, 6 Jul 2009 10:30:50 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.2.1-gr1 (2007-05-02) on server.dankulp.com X-Spam-Level: X-Msg-File: /tmp/mailfilter.YlOQwN8pzN Received: from dilbert.localnet (c-24-91-141-225.hsd1.ma.comcast.net [24.91.141.225]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.dankulp.com (Postfix) with ESMTPSA id 63A6D27E0001; Mon, 6 Jul 2009 10:30:46 -0400 (EDT) From: Daniel Kulp To: dev@cxf.apache.org Subject: Re: Properties Overriding in WSDL usage Date: Mon, 6 Jul 2009 10:30:50 -0400 User-Agent: KMail/1.11.4 (Linux/2.6.30-gentoo-r1; KDE/4.2.4; x86_64; ; ) Cc: Willem Jiang References: <4A4E2AD4.4080800@gmail.com> <4A51A168.6080700@gmail.com> In-Reply-To: <4A51A168.6080700@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="gb2312" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907061030.50414.dkulp@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-3.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=unavailable version=3.2.1-gr1 On Mon July 6 2009 3:02:00 am Willem Jiang wrote: > Hi, > > I think this is a bug of CXF, if the user define the extension in the > service and binding, > we should use the service's value. Agreed. Good catch. Dan > > Willem > > liucong wrote: > > Hi all, > > > > In the > > SOAP/JMS(http://www.w3.org/TR/2008/WD-soapjms-20081121/#wsdl-11-propertie > >s). If a property is specified at multiple levels, the most specific > > setting will take precedence (port first, then service, then binding). > > > > But I invetigate the code of CXF. I find someting int > > org.apache.cxf.service.model.EndpointInfo.getTraversedExtensor(T > > defaultValue, Class type): > > @Override > > public T getTraversedExtensor(T defaultValue, Class type) { > > T value = getExtensor(type); > > > > if (value == null) { > > if (value == null && binding != null) { > > value = binding.getExtensor(type); > > } > > > > if (service != null && value == null) { > > value = service.getExtensor(type); > > } > > > > if (value == null) { > > value = defaultValue; > > } > > } > > > > return value; > > } > > > > The code shou that:port first, then binding, then service. > > > > Now. Which is right? > > > > thanks. -- Daniel Kulp dkulp@apache.org http://www.dankulp.com/blog