title: Axis 1.4 Webservices Datetime NumberFormatException: Invalid date/time
body: <p>I´m using axis 1.4 to retrieve information from a (server) webservice.</p>
  
  <p>My WSDL have the following information:</p>
  
  <p>&lt; xs:element name="ABC"></p>
  
  <p>&lt; xs:complexType></p>
  
  <p>&lt; xs:sequence></p>
  
  <p>&lt; xs:element name="DEF"></p>
  
  <p>&lt; xs:complexType></p>
  
  <p>&lt; xs:sequence></p>
  
  <p>&lt; xs:element name="Data" type="xs:dateTime"/></p>
  
  <p>I have generated the stubs which origins the following code:</p>
  
  <p>@XmlElement(name = "Data", required = true)</p>
  
  <p>@XmlSchemaType(name = "dateTime" )</p>
  
  <p>protected XMLGregorianCalendar data;</p>
  
  <p>When i make a call to this webservice i get the following error.</p>
  
  <p>My current request is:</p>
  
  <p>2003-10-27T10:10:10.000Z</p>
  
  <p>Note that i already try using different formats for date (i allways get the same error).</p>
  
  <p>Supposedly, this is the corret format due the CalendarDeserializer [SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")].</p>
  
  <p>Any help? Thanks :)</p>
  
  <p>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. ") </p>
  
  <p>The error is:
  java.lang.NumberFormatException: Invalid date/time
  org.apache.axis.encoding.ser.CalendarDeserializer.makeValue(CalendarDeserializer.java:64)</p>