Which version of AXIS are you using? After Beta 1, the mapping of xsd:dateTime changed from Date to Calendar (this was done to follow JAX-RPC).
You say you have troubles. What sort of troubles? Could I see some WSDL and some stack dumps? Russell Butek [EMAIL PROTECTED] "Kristain Rosenvold" <[EMAIL PROTECTED]> on 04/08/2002 07:45:57 AM Please respond to [EMAIL PROTECTED] To: <[EMAIL PROTECTED]> cc: Subject: Re: Dates, Calendars, and GregorianCalendar : howto Unfortunately, Calendar does not seem to work over here, maybe It's my Time Zone ;-) bidbuy uses the java.util.Date type, which works perfectly, the echo samples does not contain dates at all. The java.util.Calendar interface (and the GregorianCalendar implementation) seems to have troubles with deserializing the TimeZone (SimpleTimeZone). Kristian Rosenvold, [EMAIL PROTECTED] ----- Original Message ----- From: "Russell Butek" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 08, 2002 2:18 PM Subject: Re: Dates, Calendars, and GregorianCalendar : howto > Calendar should work. It maps to xsd:dateTime. We have a couple of > samples that use Calendar: bidbuy, echo. And a couple tests as well, > which are run during every build and they pass. Take a look at those to > see if they help. If not, show us your code and WSDL. > > Russell Butek > [EMAIL PROTECTED] > > > Richard Emberson <[EMAIL PROTECTED]>@phc.net on 04/07/2002 08:25:51 PM > > Please respond to [EMAIL PROTECTED] > > Sent by: [EMAIL PROTECTED] > > > To: [EMAIL PROTECTED] > cc: > Subject: Dates, Calendars, and GregorianCalendar : howto > > > > Trying to send a Date .... As far as I can tell, Date is not a > primitive, built into Axis, type. > So, how about sending a Calendar. Well, that does not work either. There > > are Calendar > serializers/deserializers registered (with the class > java.util.Calendar), but one can not > make an instance of Calendar - its abstract. One can make a > GregorianCalendar, but > then one can not lookup the serializer/deserializer by class because > they are registered with > the Calendar class. > > I have a list of objects and I do not know what they are before hand. > One of them is a Date > (or GregorianCalendar) object - other than build my own > serializer/deserializer pair (I've > already written 20 or 30 of them for my own objects so I certainly can > do that -- but I > would expect that someone, somewhere has already tried to send/recieve a > > Date object) is > there any way using builtin Axis types to do it? > > Thanks. > > Richard > > >