This is actually the same format, it's just that the first one doesn't
have any time-within-day information. You're probably using a
java.sql.Date value as the source of the data in Object1, or at least
initializing it with only a date and no time value.
- Dennis
Dennis M. Sosnoski
Java Web Services Consulting <http://www.sosnoski.com/consult.html>
CXF and Web Services Security Training
<http://www.sosnoski.com/training.html>
Web Services Jump-Start <http://www.sosnoski.com/jumpstart.html>
On 06/06/2014 04:47 PM, Puneet Gupta wrote:
Hi All,
I have a Apache CXF service developed in CXF 2.7.12 and JDK1.7. I am
calling a service which returns two calendar objects. In SOAP response I am
getting these calendar objects in different formats.
EX:
Calendar Object1: 2013-12-10T00:00:00+05:30
Calendar Object2: 2014-05-19T15:25:43.943+05:30
These objects in WSDL are having XML type as xsd:dateTime.
Can anyone suggest me how to return same format for calendar objects?
I want to return Calendar object with "*2014-05-19T15:25:43.943+05:30*"
this format specifically and I want this to be accomplished at server side.
Cheers,
Puneet.