Return-Path: Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: (qmail 18529 invoked from network); 6 Jul 2009 07:02:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jul 2009 07:02:33 -0000 Received: (qmail 26334 invoked by uid 500); 6 Jul 2009 07:02:43 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 26255 invoked by uid 500); 6 Jul 2009 07:02:42 -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 26245 invoked by uid 99); 6 Jul 2009 07:02:42 -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 07:02:42 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of willem.jiang@gmail.com designates 209.85.198.244 as permitted sender) Received: from [209.85.198.244] (HELO rv-out-0708.google.com) (209.85.198.244) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 07:02:33 +0000 Received: by rv-out-0708.google.com with SMTP id k29so1310034rvb.6 for ; Mon, 06 Jul 2009 00:02:13 -0700 (PDT) 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=Bd5R0psnNDe2RFuTRWVgA3jgoG600M4fWTpwmY7c59s=; b=D7lU+F0ZsjCCpTYZqFvYOQK63JA2tNJnPrB+eyBg4tbueEmXeoZrKTT2SHfkJ5Ldwj H7yqMHHE8fucNkq4mQtc1knJteha4agubSI3yVMUEMcHmh7KhzYR3h/ndec+pwZ2OvE1 miuLghqccJx5OM1iB2MJyX0PUf8zGt7Wa2UVo= 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=O81G13QzLdKrn7bhnTxBnVkdOWRG1FGLPJ2MMBxCN3wF4Kic4DWDiEVYux0QwIN4kR tSh7YShgaqrK9HDIw0Ax1h+TPKU8pDSH/bxFarxUn1K+26omoJ20CGQxawxwXQg/mnVB TU94Gmk1csyUH3SbaGd+u3lduP8asX98QQ+Sg= Received: by 10.140.144.6 with SMTP id r6mr2122133rvd.276.1246863733280; Mon, 06 Jul 2009 00:02:13 -0700 (PDT) Received: from ?192.168.0.158? ([123.113.118.28]) by mx.google.com with ESMTPS id c20sm17400351rvf.59.2009.07.06.00.02.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 06 Jul 2009 00:02:12 -0700 (PDT) Message-ID: <4A51A168.6080700@gmail.com> Date: Mon, 06 Jul 2009 15:02:00 +0800 From: Willem Jiang User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 To: dev@cxf.apache.org Subject: Re: Properties Overriding in WSDL usage References: <4A4E2AD4.4080800@gmail.com> In-Reply-To: <4A4E2AD4.4080800@gmail.com> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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. Willem liucong wrote: > Hi all, > > In the > SOAP/JMS(http://www.w3.org/TR/2008/WD-soapjms-20081121/#wsdl-11-properties). > 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. >