Help! - javax.xml.bind.MarshalException Date and Gregorian Calendar
843833Jun 20 2010 — edited Jun 23 2010I am now developing a JAX-WS web service client with NETBEAN 6.8 against our vendor's exposed Web services.
There is a XML schema element use basic xs:date while in generated java class it's a Gregorian calendar type.
Everything went fine until I ran into the following error message.
javax.xml.bind.MarshalException - with linked exception: [org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '2010-06-17T00:00:00+09:30' is not a valid value for 'date'.
Obviously, I can't modify anything an add correct annotation to Vendor's Java classes. What can I do on my site.
Can I use JAXB binding language and XMLAdaptor to convert that element's type xs:date to xs:dateTime?
Please shed light. Really new in this technology.
Thank you.
David