Return-Path: Delivered-To: apmail-incubator-cxf-dev-archive@locus.apache.org Received: (qmail 54887 invoked from network); 31 Oct 2006 05:57:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2006 05:57:57 -0000 Received: (qmail 86164 invoked by uid 500); 31 Oct 2006 05:58:07 -0000 Delivered-To: apmail-incubator-cxf-dev-archive@incubator.apache.org Received: (qmail 86061 invoked by uid 500); 31 Oct 2006 05:58:07 -0000 Mailing-List: contact cxf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-dev@incubator.apache.org Received: (qmail 86032 invoked by uid 99); 31 Oct 2006 05:58:07 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Oct 2006 21:58:07 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of James.Mao@iona.com designates 65.223.216.181 as permitted sender) Received: from [65.223.216.181] (HELO amereast-smg1.iona.com) (65.223.216.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Oct 2006 21:57:54 -0800 Received: from amereast-ems2.IONAGLOBAL.COM ([10.65.6.84]) by amereast-smg1.iona.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k9V5uWTR013726; Tue, 31 Oct 2006 00:57:17 -0500 (EST) Received: from [10.129.9.116] ([10.129.9.116]) by amereast-ems2.IONAGLOBAL.COM with Microsoft SMTPSVC(5.0.2195.6713); Tue, 31 Oct 2006 00:48:18 -0500 Message-ID: <4546E35A.4040803@iona.com> Date: Tue, 31 Oct 2006 13:47:06 +0800 From: James Mao User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: cxf-dev@incubator.apache.org CC: cxf-commits@incubator.apache.org Subject: Re: svn commit: r469376 - in /incubator/cxf/trunk/rt: core/src/main/java/org/apache/cxf/interceptor/ frontend/jaxws/src/test/java/org/apache/cxf/jaxws/ References: <20061031053502.07AC91A9846@eris.apache.org> <4546E259.1040309@envoisolutions.com> In-Reply-To: <4546E259.1040309@envoisolutions.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 31 Oct 2006 05:48:18.0929 (UTC) FILETIME=[2ACEFE10:01C6FCB0] X-Virus-Checked: Checked by ClamAV on apache.org Hi Dan, Yes, i awared, that's why i just use it to log, i'm not failed the processing. If i can not use jaxws stuff in that module , i guess we should remove the dependencies from the POM Yes, i will use the messagePartInfo.getConcreteName().getLocalPart(), that's next story. It's not a part of HTTP binding, and i don't think in GET we need to convert to the document, it'll slow down the processing. Cheers, James. Dan Diephouse 写道: > Hi James, > Are you aware this information is in the service model? Are you also > aware that this information often times is NOT in the annotations - > for instance when someone does code first services? There should > hardly ever be any reason to use the jax-ws annotations outside the > JaxWsServiceFactory/JaxWsServiceConfiguration classes. Just do > key.equals(messagePartInfo.getConcreteName().getLocalPart()) to see if > they match. > > Also you might want to look at using the utility code in the HTTP > binding to turn parameters and their values into a document which > conforms to the schema. > > - Dan > > > mmao@apache.org wrote: >> + private boolean isValidParameter(Annotation[][] >> parameterAnnotation, int index, String parameterName) { >> + if (parameterAnnotation == null || >> parameterAnnotation.length < index) { >> + return true; >> + } >> + Annotation[] annotations = parameterAnnotation[index]; >> + if (annotations == null || annotations.length < 1) { >> + return true; >> + } >> + WebParam webParam = null; >> + for (Annotation annotation : annotations) { >> + if (annotation.annotationType() == WebParam.class) { >> + webParam = (WebParam) annotation; >> + } >> + } >> + if (webParam == null + || >> StringUtils.isEmpty(webParam.name()) + || >> webParam.name().equals(parameterName)) { >> + return true; >> + } >> + LOG.warning("The parameter name [" + parameterName >> + + "] is not match the one defined in the >> WebParam name [" + webParam.name() + "]"); >> + return false; >> + } >> > Dan Diephouse > Envoi Solutions > http://envoisolutions.com > http://netzooid.com/blog > >