Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 96865 invoked from network); 29 Aug 2008 15:27:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Aug 2008 15:27:14 -0000 Received: (qmail 10131 invoked by uid 500); 29 Aug 2008 15:27:12 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 10118 invoked by uid 500); 29 Aug 2008 15:27:12 -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 10107 invoked by uid 99); 29 Aug 2008 15:27:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Aug 2008 08:27:12 -0700 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; Fri, 29 Aug 2008 15:26:14 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6E187234C1C3 for ; Fri, 29 Aug 2008 08:26:44 -0700 (PDT) Message-ID: <1182995534.1220023604449.JavaMail.jira@brutus> Date: Fri, 29 Aug 2008 08:26:44 -0700 (PDT) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-1768) WSDL First leads to javax.wsdl.WSDLException: WSDLException In-Reply-To: <1866483823.1219926584645.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-1768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627006#action_12627006 ] Daniel Kulp commented on CXF-1768: ---------------------------------- Well, I can explain why the second scenario (specifying the names) works: you don't have a @WebService annotation at all. In that case, we have to use the JAX-WS rules to figure out what the service name and endpoint name really are. In your case, that would be CCInfoWSImplService and CCInfoWSImplPort. We then check the wsdl for those names. There isn't a service/port by those names in there, so we end up dynamically creating one for use at runtime. Apparently, the dynamically created one is have namespace issues in the wsdl writing step. By specifying the correct names, we can find the correct information in the WSDL and use the wsdl as is. You can do that either via the attributes in your config like you did or via attributes on a @WebService annotation on your impl. > WSDL First leads to javax.wsdl.WSDLException: WSDLException > ----------------------------------------------------------- > > Key: CXF-1768 > URL: https://issues.apache.org/jira/browse/CXF-1768 > Project: CXF > Issue Type: Bug > Affects Versions: 2.1.1, 2.1.2 > Environment: Windows Vista, JDK 1.5.0 > Reporter: Mirko Sertic > Attachments: cc-info-common-types.xsd, cc-info.wsdl, CCInfoWSImpl.java > > > WSDL first with spring results in the following Exception: > javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for ... Namespace prefixes must be set on the Definition object using the addNamespace(...) method. > The Spring configuration is as follows: > > > > > > > > > > > > > I have to specify the spring configuration as follows to make it working: > xmlns:tns="http://www.bedag.ch/cc-info" > xmlns:cdt="http://www.bedag.ch/cc-info/common/types" > serviceName="tns:CCService" > endpointName="tns:CCPortType"> > > > > > I dont know why i have to specify the porttype again. I added the used wsdl files for bug tracking. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.