I´m using axis 1.4 to retrieve information from a (server) webservice.
My WSDL have the following information:
< xs:element name="ABC">
< xs:complexType>
< xs:sequence>
< xs:element name="DEF">
< xs:complexType>
< xs:sequence>
< xs:element name="Data" type="xs:dateTime"/>
I have generated the stubs which origins the following code:
@XmlElement(name = "Data", required = true)
@XmlSchemaType(name = "dateTime" )
protected XMLGregorianCalendar data;
When i make a call to this webservice i get the following error.
My current request is:
2003-10-27T10:10:10.000Z
Note that i already try using different formats for date (i allways get the same error).
Supposedly, this is the corret format due the CalendarDeserializer [SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")].
Any help? Thanks :)
P.S- Sorry about the text formatation (i was getting crazy with the message "Your post appears to contain code that is not properly formatted as code. ")
The error is: java.lang.NumberFormatException: Invalid date/time org.apache.axis.encoding.ser.CalendarDeserializer.makeValue(CalendarDeserializer.java:64)