users@jax-ws.java.net

Proper way to convert Calendar to XMLGregorianCalendar and vice/versa

From: Ryan LeCompte <Ryan.LeCompte_at_pangonetworks.com>
Date: Mon, 21 Aug 2006 07:11:51 -0400

Hello all,
 
In JWSDP 1.6, a java.util.Calendar was used for the xsd:dateTime type. In JAX-WS 2.0, it's now using XMLGregorianCalendar. What's the proper way to convert between these two types?
 
Thanks,
Ryan