Return-Path: X-Original-To: apmail-cxf-dev-archive@www.apache.org Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F138C95BB for ; Sat, 1 Oct 2011 03:17:27 +0000 (UTC) Received: (qmail 10375 invoked by uid 500); 1 Oct 2011 03:17:26 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 9835 invoked by uid 500); 1 Oct 2011 03:17:18 -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 9750 invoked by uid 99); 1 Oct 2011 03:17:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Oct 2011 03:17:15 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mail2jimma@gmail.com designates 209.85.214.41 as permitted sender) Received: from [209.85.214.41] (HELO mail-bw0-f41.google.com) (209.85.214.41) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Oct 2011 03:17:09 +0000 Received: by bkbzs2 with SMTP id zs2so2829202bkb.0 for ; Fri, 30 Sep 2011 20:16:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=wkq8GD6HH+s1dbHrjjhzKldDweyPxnKo1mNtWJjkDSg=; b=VX4onc13tnr5jnN4kNHb1DYt5IHUi+fUH0TW7vVVo/9OL/B0dx84D56iStELLZ4ZXM F0jQAR8EQ3gz8lx/kvkjRVSa/PUik9HZ+5nSMf9gCCZPgss4HcLNxbm3Da4d4KY+HRsR RS0Kmomwd3tjoSC4sOGyyjj9t9ufLQzNsqo0k= MIME-Version: 1.0 Received: by 10.204.151.90 with SMTP id b26mr8247173bkw.220.1317439008694; Fri, 30 Sep 2011 20:16:48 -0700 (PDT) Received: by 10.204.114.207 with HTTP; Fri, 30 Sep 2011 20:16:48 -0700 (PDT) Reply-To: mail2jimma@gmail.com In-Reply-To: <4E84E41E.3040209@talend.com> References: <20110929100546.3F113238889B@eris.apache.org> <4E84E41E.3040209@talend.com> Date: Sat, 1 Oct 2011 11:16:48 +0800 Message-ID: Subject: Re: commits to JaxWsEndpointImpl (r1177248) From: Jim Ma To: dev@cxf.apache.org, gmazza@talend.com Content-Type: multipart/alternative; boundary=0015175df1402061fb04ae342c25 X-Virus-Checked: Checked by ClamAV on apache.org --0015175df1402061fb04ae342c25 Content-Type: text/plain; charset=ISO-8859-1 Thanks Glen for pointing out my typo and errors. The error message you suggested is better , I just slightly changed it to "Unknown wsd binding extension with required=true attribute found while RespectBindingFeature enabled". Thanks Jim On Fri, Sep 30, 2011 at 5:33 AM, Glen Mazza wrote: > Hi Jim: > > On 09/29/2011 06:05 AM, ema@apache.org wrote: > >> Author: ema >> Date: Thu Sep 29 10:05:45 2011 >> New Revision: 1177248 >> >> URL: http://svn.apache.org/viewvc?**rev=1177248&view=rev >> Log: >> [CXF-2006]:Check UnknownExtensibilityElement when RespectBindingFeature is >> enalbed >> >> Modified: cxf/trunk/rt/frontend/jaxws/**src/main/java/org/apache/cxf/** >> jaxws/support/**JaxWsEndpointImpl.java >> URL: http://svn.apache.org/viewvc/**cxf/trunk/rt/frontend/jaxws/** >> src/main/java/org/apache/cxf/**jaxws/support/** >> JaxWsEndpointImpl.java?rev=**1177248&r1=1177247&r2=1177248&**view=diff >> ==============================**==============================** >> ================== >> --- cxf/trunk/rt/frontend/jaxws/**src/main/java/org/apache/cxf/** >> jaxws/support/**JaxWsEndpointImpl.java (original) >> +++ cxf/trunk/rt/frontend/jaxws/**src/main/java/org/apache/cxf/** >> jaxws/support/**JaxWsEndpointImpl.java Thu Sep 29 10:05:45 2011 >> > > + org.apache.cxf.common.i18n.**Message message >> = >> + new org.apache.cxf.common.i18n.** >> Message("UNKONW_REQUIRED_WSDL_**BINDING", LOG); >> > > Should be UNKNOWN_.... > > + LOG.severe(message.toString())**; >> + throw new WebServiceException(message.** >> toString()); >> + } >> + } >> + } >> + } >> + } >> + >> + } >> + >> private void extractWsdlEprs(EndpointInfo endpoint) { >> //parse the EPR in wsdl >> List portExtensors = >> endpoint.getExtensors(**ExtensibilityElement.class); >> >> Modified: cxf/trunk/rt/frontend/jaxws/**src/main/java/org/apache/cxf/** >> jaxws/support/Messages.**properties >> URL: http://svn.apache.org/viewvc/**cxf/trunk/rt/frontend/jaxws/** >> src/main/java/org/apache/cxf/**jaxws/support/Messages.** >> properties?rev=1177248&r1=**1177247&r2=1177248&view=diff >> ==============================**==============================** >> ================== >> --- cxf/trunk/rt/frontend/jaxws/**src/main/java/org/apache/cxf/** >> jaxws/support/Messages.**properties (original) >> +++ cxf/trunk/rt/frontend/jaxws/**src/main/java/org/apache/cxf/** >> jaxws/support/Messages.**properties Thu Sep 29 10:05:45 2011 >> @@ -33,4 +33,8 @@ SERVICECLASS_MUST_BE_SET = serviceClass >> XMLSEEALSO_NULL_CLASS = A class listed in the XmlSeeAlso annotation of >> the service class %s cannot be found on the classpath. Index: %d of >> XmlSeeAlso class list. >> WEBMETHOD_EXCLUDE_NOT_ALLOWED = The @javax.jws.WebMethod(exclude=**true) >> cannot be used on a service endpoint interface. Method: {0} >> WEBSERVICE_ANNOTATIONS_IS_**LOADED_BY_OTHER_CLASSLOADER = The {0} >> annotation was already loaded by another classloader. Please check if there >> are multiple versions of the web service annotation jar in your classpath. >> +UNKONW_REQUIRED_WSDL_BINDING = RespectBindingFeature is enabled and there >> is wsdl:extensions that have the required=true attribute >> +attribute >> + >> > > there *are* wsdl:extensions > also you're repeating the word "attribute" (look on last line above) > > This error message seems unclear about the actual problem anyway--how about > "Unknown wsdl:extension elements with required=true attribute found while > RespectBindingFeature enabled"? > > > + >> >> >> Added: cxf/trunk/systests/**uncategorized/src/test/java/** >> org/apache/cxf/cxf2006/**RespectBindingFeatureClientSer**verTest.java >> URL: http://svn.apache.org/viewvc/**cxf/trunk/systests/** >> uncategorized/src/test/java/**org/apache/cxf/cxf2006/** >> RespectBindingFeatureClientSer**verTest.java?rev=1177248&view=**auto >> ==============================**==============================** >> ================== >> --- cxf/trunk/systests/**uncategorized/src/test/java/** >> org/apache/cxf/cxf2006/**RespectBindingFeatureClientSer**verTest.java >> (added) >> +++ cxf/trunk/systests/**uncategorized/src/test/java/** >> org/apache/cxf/cxf2006/**RespectBindingFeatureClientSer**verTest.java Thu >> Sep 29 10:05:45 2011 >> @@ -0,0 +1,64 @@ >> +/** >> + * Licensed to the Apache Software Foundation (ASF) under one >> + * or more contributor license agreements. See the NOTICE file >> + * distributed with this work for additional information >> + * regarding copyright ownership. The ASF licenses this file >> + * to you under the Apache License, Version 2.0 (the >> + * "License"); you may not use this file except in compliance >> + * with the License. You may obtain a copy of the License at >> + * >> + * http://www.apache.org/**licenses/LICENSE-2.0 >> + * >> + * Unless required by applicable law or agreed to in writing, >> + * software distributed under the License is distributed on an >> + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY >> + * KIND, either express or implied. See the License for the >> + * specific language governing permissions and limitations >> + * under the License. >> + */ >> + >> +package org.apache.cxf.cxf2006; >> + >> +import javax.xml.namespace.QName; >> +import javax.xml.ws.**RespectBindingFeature; >> +import org.apache.cxf.testutil.**common.**AbstractBusClientServerTestBas >> **e; >> +import org.apache.hello_world_rpclit.**GreeterRPCLit; >> +import org.apache.hello_world_rpclit.**SOAPServiceRPCLit; >> +import org.junit.BeforeClass; >> +import org.junit.Test; >> + >> +public class RespectBindingFeatureClientSer**verTest extends >> AbstractBusClientServerTestBas**e { >> + public static final String PORT = Server.PORT; >> + private final QName portName = new QName("http://apache.org/** >> hello_world_rpclit ", >> "SoapPortRPCLit"); >> + private SOAPServiceRPCLit service = new SOAPServiceRPCLit(); >> + >> + @BeforeClass >> + public static void startServers() throws Exception { >> + assertTrue("server did not launch correctly", >> launchServer(Server.class)); >> + } >> + >> + @Test >> + public void testRespectBindingFeature() throws Exception { >> + try { >> + GreeterRPCLit greeter = service.getPort(portName, >> GreeterRPCLit.class, >> + new >> RespectBindingFeature(true)); >> + updateAddressPort(greeter, PORT); >> + greeter.greetMe("hello"); >> + fail("WebServiceException is expected"); >> + } catch (Exception ex) { >> + assertTrue("**WebServiceException is expected", ex >> instanceof javax.xml.ws.**WebServiceException); >> + assertTrue("**RespectBindingFeature message is expceted", >> > > expected > > Regards, > Glen > > > -- > Glen Mazza > Talend - http://www.talend.com/**products/tsf > Blog - http://www.jroller.com/gmazza > Twitter - glenmazza > > --0015175df1402061fb04ae342c25--