2 Replies Latest reply on Jun 25, 2009 10:09 AM by João Bosco Monteiro

    Problem on receiving an object holding datetime

    João Bosco Monteiro Newbie

      Hi guys,

      I have many services that use complex objects holding datetime (java.util.Date) values. The problem is that I always get null for datetime attributes. How can I solve this?
      I'm using JBoss AS 4.2.3-jdk6 and my ws clients are written in Delphi 7.

      My classes:

      public class Document implements Serializable {
       private static final long serialVersionUID = 2964445290986713245L;
       private Date date;
       //getters and setters

      My ws looks like this:

      public class DateServices {
       public Date dateNow(){
       return new Date();
       public void printDate(@WebParam(name="documento", mode=Mode.IN) Documento documento){
       if(documento.getDate() == null)
       SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
       String data = dateFormat.format(documento.getDate());