I had a similar problem before. The reason for my problem was that, while returning the date from my web method I was actually returning an instance of java.sql.Date and not an actual instance of java.util.Date. So if you are returning dates, just make sure that you are not just casting java.sql.Date or some other derived class of java.util.Date to java.util.Date. Create a new java.util.Date from that derived object and then send an actual instance of java.util.Date.

 

-----Original Message-----
From: Silvano Fari [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 7:28 AM
To: [EMAIL PROTECTED]
Subject: Bug? Axis returns date instead of dateTime

 

Hi

 

How can I workaround the following problem?

 

The WSDL of my Java service defines an entryDate as follows:
<element name="entryDate" nillable="true" type="xsd:dateTime" />

The entryDates Java representation is java.util.Date.

Axis sends a SOAP response containing the entryDate as follows:
<entryDate xsi:type="xsd:date">2003-12-01</entryDate>

Thanks,

Silvano

 


Gesendet von http://mail.yahoo.de
Schneller als Mail - der neue Yahoo! Messenger.

Reply via email to