You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by mn...@be-value.nl on 2002/10/23 17:50:32 UTC

Date is not Correct in Soap Message send to server

Hi, All out There,

I am currently having the following prblem. I Use Axis 1.0 Downloaded it yesterday. Worked for server moths with beta 3.

In both versions i have the following problem:

I Wrote A Unit test:

            String dateString1=  "12-06-2002";
            Date dateRet = DateConvertor.convertDateStringToDate(dateString1);
            System.out.println("Date =" + dateRet);
            kl.setAflosDatum(dateRet);
            binding.search(kl);

The OutPut is the Following:

.Date =Wed Jun 12 00:00:00 CEST 2002

on the Console and

<aflosDatum xsi:type="xsd:dateTime">2002-06-11T22:00:00.000Z</aflosDatum> 

in the Soap Message

Can some body give me a hint please.

Marteijn Nouwens



Re: Date is not Correct in Soap Message send to server

Posted by Eric Rajkovic <er...@oracle.com>.
because CEST is UTC +2, those two dates are equivalent.

2002-06-11T22:00:00.000Z = 2002-06-12T00:00:00.000+2:00

on the wire, axis always use Zulu (UTC, GMT) to transmit date.

If you want to send the day date, you should use a string as you will
get different result from different platforms.

eric

mnouwens@be-value.nl wrote:
> Hi, All out There,
>  
> I am currently having the following prblem. I Use Axis 1.0 Downloaded it 
> yesterday. Worked for server moths with beta 3.
>  
> In both versions i have the following problem:
>  
> I Wrote A Unit test:
>  
>             String dateString1=  "12-06-2002";
>             Date dateRet = 
> DateConvertor.convertDateStringToDate(dateString1);
>             System.out.println("Date =" + dateRet);
>             kl.setAflosDatum(dateRet);
>             binding.search(kl);
>  
> The OutPut is the Following:
>  
> .Date =Wed Jun 12 00:00:00 CEST 2002
> on the Console and
>  
> <aflosDatum 
> xsi:type="*xsd:dateTime*">*2002-06-11T22:00:00.000Z*</aflosDatum>
>  
> in the Soap Message
>  
> Can some body give me a hint please.
>  
> Marteijn Nouwens
>  
>  


Re: Date is not Correct in Soap Message send to server

Posted by Steve Loughran <st...@iseran.com>.
What time zone is CEST? central european summer time? Which is two hours
ahead of GMT? Looks right to me.

The Date object contains a zone, looks like it is defaulting to UTC 'Z',
which is what goes over the wire
----- Original Message -----
From: <mn...@be-value.nl>
To: <ax...@xml.apache.org>
Sent: Wednesday, October 23, 2002 8:50 AM
Subject: Date is not Correct in Soap Message send to server


Hi, All out There,

I am currently having the following prblem. I Use Axis 1.0 Downloaded it
yesterday. Worked for server moths with beta 3.

In both versions i have the following problem:

I Wrote A Unit test:

            String dateString1=  "12-06-2002";
            Date dateRet =
DateConvertor.convertDateStringToDate(dateString1);
            System.out.println("Date =" + dateRet);
            kl.setAflosDatum(dateRet);
            binding.search(kl);

The OutPut is the Following:

.Date =Wed Jun 12 00:00:00 CEST 2002

on the Console and

<aflosDatum xsi:type="xsd:dateTime">2002-06-11T22:00:00.000Z</aflosDatum>

in the Soap Message

Can some body give me a hint please.

Marteijn Nouwens