Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 84608 invoked from network); 29 Aug 2007 19:27:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Aug 2007 19:27:02 -0000 Received: (qmail 16368 invoked by uid 500); 29 Aug 2007 19:26:57 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 16303 invoked by uid 500); 29 Aug 2007 19:26:57 -0000 Mailing-List: contact cxf-issues-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-issues@incubator.apache.org Received: (qmail 16294 invoked by uid 99); 29 Aug 2007 19:26:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2007 12:26:57 -0700 X-ASF-Spam-Status: No, hits=-99.8 required=10.0 tests=ALL_TRUSTED,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2007 19:27:50 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2C099714191 for ; Wed, 29 Aug 2007 12:26:31 -0700 (PDT) Message-ID: <18793100.1188415591177.JavaMail.jira@brutus> Date: Wed, 29 Aug 2007 12:26:31 -0700 (PDT) From: "Daniel Kulp (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Commented: (CXF-926) JAX-WS code first fault mapping is not using @XmlRootElement names from detail type In-Reply-To: <11882499.1187646450519.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-926?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523659 ] Daniel Kulp commented on CXF-926: --------------------------------- Actually, according to JAX-WS spec (section 2.5), we are NOT supposed to use the XmlRootElement at all and instead use the element name generated from the WebFault annotation. Thus, this is a problem with the serialization of the fault as we need to specify the proper QName instead of using the XmlRootElement qname. > JAX-WS code first fault mapping is not using @XmlRootElement names from detail type > ----------------------------------------------------------------------------------- > > Key: CXF-926 > URL: https://issues.apache.org/jira/browse/CXF-926 > Project: CXF > Issue Type: Bug > Components: Core, JAX-WS Runtime, JAXB Databinding > Affects Versions: 2.0.1 > Reporter: Daniel Kulp > Fix For: 2.0.2 > > > See: http://www.nabble.com/Handle-exceptions-on-the-client-side-tf4273066.html > When getting a list of expected element names, it's not using the information from the @XmlRootElement to determine the element names. It's only using the WebFault information. Unfortunately, it's not really using that correctly either. If the @WebFault annotation doesn't put the proper namespace in, it will have issues with as well. > There is a semi-workaround: > If you completely specify the @WebFault annotation (including the targetNamespace), and then remove the @XmlRootElement annotation on the details, it would work. Or, make sure the data in the @WebFault matches the data in the @XmlRootElement. That's definitely not an ideal situation though. The element names may not be exactly what you want that way. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.