Creating a XML calendar object suitable for use in SOAP messages, in Java, is simple enough.
public XMLGregorianCalendar getXMLGregorianCalendarNow()
throws DatatypeConfigurationException
{
GregorianCalendar gregorianCalendar = new GregorianCalendar();
DatatypeFactory datatypeFactory = DatatypeFactory.newInstance();
XMLGregorianCalendar now =
datatypeFactory.newXMLGregorianCalendar(gregorianCalendar);
return now;
}