Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4C7AC9F8E for ; Fri, 28 Dec 2012 09:44:16 +0000 (UTC) Received: (qmail 15231 invoked by uid 500); 28 Dec 2012 09:44:16 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 15033 invoked by uid 500); 28 Dec 2012 09:44:13 -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 14964 invoked by uid 99); 28 Dec 2012 09:44:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Dec 2012 09:44:12 +0000 Date: Fri, 28 Dec 2012 09:44:12 +0000 (UTC) From: "Andrei Shakirin (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-4624) XMLGregorianCalendarImpl Unmarshalling error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13540408#comment-13540408 ] Andrei Shakirin commented on CXF-4624: -------------------------------------- A test case to reproduce your problem will be helpful. XMLGregorianCalendar is default java type to map xsd:dateTime. Likely your binding was not applied everywhere. > XMLGregorianCalendarImpl Unmarshalling error > -------------------------------------------- > > Key: CXF-4624 > URL: https://issues.apache.org/jira/browse/CXF-4624 > Project: CXF > Issue Type: Bug > Affects Versions: 2.4 > Reporter: Sylvain P > > Hello, > I'm stuck with a problem for ages ... > I have developped a SOAP Web Service based on CXF 2.4.0. > In my wsdl2java process, i have specified correct binding to bind xsd:dateTime attributes to java.util.Date. > Once my beans generated, all my date type are correctly transformed into Java Date Type. > Ok, good ! > When i call a Webservice Method which contain a date as a parameter, i receive a surprising error : > javax.xml.ws.soap.SOAPFaultException: Unmarshalling Error: org/apache/xerces/jaxp/datatype/XMLGregorianCalendarImpl$Parser > (My version of Xerces is 2.7.1, also tested on 2.9.1) > So ... why the marshaller is trying to convert my date type into XMLGregorianCalendar ?! > I have searched all over the forum and googled a lot, but still the same responses "Bind to java.util.date". > Well, like i said previously, all attributes are binded to Date type but it seems that the Marshaller ignore that rule. > If you have some ideas about this issue :) > Trix -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira