Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 42234 invoked from network); 15 Aug 2006 08:44:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Aug 2006 08:44:17 -0000 Received: (qmail 20423 invoked by uid 500); 15 Aug 2006 08:44:14 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 20088 invoked by uid 500); 15 Aug 2006 08:44:13 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 20077 invoked by uid 99); 15 Aug 2006 08:44:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Aug 2006 01:44:13 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Aug 2006 01:44:11 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 82D2D41001E for ; Tue, 15 Aug 2006 08:41:18 +0000 (GMT) Message-ID: <13604234.1155631278533.JavaMail.jira@brutus> Date: Tue, 15 Aug 2006 01:41:18 -0700 (PDT) From: "Serguey Mironov (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS-1988) Date/dateTime tag attributes do not get serialized correctly In-Reply-To: <2111521969.1115833331321.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS-1988?page=comments#action_12428071 ] Serguey Mironov commented on AXIS-1988: --------------------------------------- I have the similar problem. My version of Axis is 1.3. I declare service in server-config.wsdd: Service class: package wso.service; import wso.DateBean; import java.util.Date; import java.util.GregorianCalendar; public class DateService { public DateBean retrieveBean() { return new DateBean(new Date(), new GregorianCalendar()); } public Date currentDate() { return new Date(); } public GregorianCalendar currentTime() { return new GregorianCalendar(); } } Bean class: package wso; import java.util.Date; import java.util.GregorianCalendar; public class DateBean implements java.io.Serializable { public Date getDd() { return dd; } public void setDd(Date dd) { this.dd = dd; } protected java.util.Date dd; protected java.util.GregorianCalendar gc; public String toString() { return "DateBean{" + "dd=" + dd + "}"; } public DateBean(Date dd) { this.dd = dd; } public DateBean() { } public DateBean(Date dd, GregorianCalendar gc) { this.dd = dd; this.gc = gc; } public GregorianCalendar getGc() { return gc; } public void setGc(GregorianCalendar gc) { this.gc = gc; } } Response always contains dateTime result. If I use rpc/encoded then all works fine. > Date/dateTime tag attributes do not get serialized correctly > ------------------------------------------------------------ > > Key: AXIS-1988 > URL: http://issues.apache.org/jira/browse/AXIS-1988 > Project: Apache Axis > Issue Type: Bug > Components: Serialization/Deserialization > Affects Versions: 1.2 > Environment: Windows XP, Tomcat 5.0.29 > Reporter: Alessandro Santini > > Please have a look to the following WSDL snippet: > > > > > > > > > with xmlns:p="http://www.w3.org/2001/XMLSchema" > the "date" attribute gets serialized as "Wed May 11 19:35:11 CEST 2005" which is clearly incorrect. We have played with p:dateTime but the result is the same. > Debugging Axis, we have noticed that neither DateSerializer nor CalendarSerializer have been invoked. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org