At least 3 tests are failing due to problems serializing a Calendar.
In each of the 3 cases a GregorianCalendar(96,5,1) is instantiated and
sent to the service. The service compares the received Calendar against
GregorianCalendar(96,5,1) and fails.
The CalendarDeserializer has the following code:
if (pos < source.length() && source.charAt(pos)=='Z') {
pos++;
calendar.setTimeZone(TimeZone.getTimeZone("GMT"));
}
Since Axis always sends a Calendar with a 'Z' timezone, the received
Calendar will always be modified to have a GMT timezone...and cause the
server side comparison to fail.
If I remove "calendar.setTimeZone...", the TCK passes.
I want to know the appropriate solution.
Why are we using the format "yyy-MM-dd'T'HH:mm:ss.SSS'Z'" instead of
yyy-MM-dd'T'HH:mm:ss.SSS z'"
Is it okay to remove the "calendar.setTimeZone..." from the
CalendarDeserializer ?
Rich 'Shirley' Scheuerle
IBM WebSphere & Axis Web Services Development
512-838-5115 (IBM TL 678-5115)