Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 28883 invoked from network); 15 Jan 2009 20:43:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Jan 2009 20:43:20 -0000 Received: (qmail 12715 invoked by uid 500); 15 Jan 2009 20:43:20 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 12697 invoked by uid 500); 15 Jan 2009 20:43:20 -0000 Mailing-List: contact issues-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 issues@cxf.apache.org Received: (qmail 12685 invoked by uid 99); 15 Jan 2009 20:43:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jan 2009 12:43:20 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jan 2009 20:43:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 87C1B234C485 for ; Thu, 15 Jan 2009 12:42:59 -0800 (PST) Message-ID: <277431754.1232052179542.JavaMail.jira@brutus> Date: Thu, 15 Jan 2009 12:42:59 -0800 (PST) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-1979) wsdl2java fails to generate working client code if web service name or serviceName is "Service" In-Reply-To: <1277104463.1231879741039.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-1979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664257#action_12664257 ] Daniel Kulp commented on CXF-1979: ---------------------------------- Oh..... a portType names Service as well... Interesting. OK. Definitely a bug. > wsdl2java fails to generate working client code if web service name or serviceName is "Service" > ----------------------------------------------------------------------------------------------- > > Key: CXF-1979 > URL: https://issues.apache.org/jira/browse/CXF-1979 > Project: CXF > Issue Type: Bug > Components: Tooling > Affects Versions: 2.1.3 > Environment: Windows XP, JDK 1.6.0_11, JAX-WS RI for the web service, and CXF for the client > Reporter: Jon Miller > Priority: Minor > > If you create a web service and set the name or serviceName to "Service" like the following, > @WebService(name = "Service", serviceName = "Service") > public class Service { > ... > } > and you use wsdl2java to generate client code for the web service. The generated code won't compile. This is because javax.xml.ws.Service is imported in some of the files and it gets confused between this and the generated classes. It would be better if the generated code fully qualified the class names rather than importing them. Or, if knew to look for conflicts and renamed the classes to something else. i.e. maybe just call it Service2 instead. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.