Egor Pervuninski wrote:

Hello Jeff,

## Deppen, Jeff : Wed, 3 Nov 2004 10:57:06 -0500

DJ> All, Does anyone know of a way to dictate the timezone
DJ> org.apache.axis.types.Time uses?  It appears to ALWAYS convert a
DJ> local time to UTC.  (I've got some picky client app developers
DJ> that want the time as Eastern Standard Time.)

According to the source code you can't.

...

So it will always serialize org.apache.axis.types.Time as UTC.
Some time ago I solved such problem by patching the source code by hand.


The reason for this is because date and time values in XML for web services are *always* UTC - that's how XML schema defines them. If you really want to transfer times in a particular time zone, write a serializer/deserializer that will convert them to a format like <time>12:45:00PDT</time>. In schema terms this will not be a time value; but you can make it an xsd:string and just define your own conventions for handling it.

 - Dennis

--
Dennis M. Sosnoski
Enterprise Java, XML, and Web Services
Training and Consulting
http://www.sosnoski.com
Redmond, WA  425.885.7197



Reply via email to