Is there any short way to convert java.time.ZonedDateTime to XMLGregorianCalendar?
Maybe I need some intermediate steps like convert ZonedDateTime to java.util.Date, but that will make code too messy.
The problem appeared in JAX-WS web services, datetime there is passed as XMLGregorianCalendar.
yyyy-MM-dd
date. Due to the fact that Java JAX-WS maps dates to XMLGregorianCalendar instead of Date even if you defined that as such in your WSDL data types. – Windjammer