axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gustavo De Simone" <gusd...@montevideo.com.uy>
Subject Re: Axis 1.1 doesn't support java.util.Date?
Date Wed, 07 Jul 2004 22:02:47 GMT
thanks
  ----- Original Message ----- 
  From: Vikas Phonsa 
  To: 'axis-user@ws.apache.org' 
  Sent: Wednesday, July 07, 2004 5:44 PM
  Subject: RE: Axis 1.1 doesn't support java.util.Date?


  Here is an article that has some good stuff on handling Date web services:



  http://www-106.ibm.com/developerworks/webservices/library/ws-tip-roundtrip1.html



  Vikas



  -----Original Message-----
  From: Bill Werth [mailto:BWerth@TELTONE.com] 
  Sent: Wednesday, July 07, 2004 1:27 PM
  To: 'axis-user@ws.apache.org'
  Subject: RE: Axis 1.1 doesn't support java.util.Date?



  I'm fairly new to Web services, but I'm wondering if this could have something to do with
it:



  The user manual says that the Standard mappings from WSDL to Java is:

        xsd:dateTime
       java.util.Calendar
       



  So it looks like you could resolve the problem by using the Calendar class instead of Date?

    -----Original Message-----
    From: Gustavo De Simone [mailto:gusdesi@montevideo.com.uy]
    Sent: Wednesday, July 07, 2004 1:10 PM
    To: Axis Group
    Subject: Axis 1.1 doesn't support java.util.Date?

    Is it correct to say that Axis 1.1 doesn't support the Serialization of java.util.Date??
I mean I have some problem doing it and I can not figure why

    What should i be doing wrong...

    I have already post this:





    I am Serializing a Bean with a java.util.Date attribute ie:



    public Persona{

        java.util.Date bitrthday;



        public  setBirthday(Date date..)

        ..

    }



    In the client in the generated stubs When I recieve from the server a an object of Person
I get the next error:



    - Could not convert java.util.Date to bean field 'birthday', type java.util.Calendar
    - Exception:
    java.lang.IllegalArgumentException: argument type mismatch
     at org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.java:181)
     at org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl.java:282)
     at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:541)
     at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)
     at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:204)
     at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:722)
     at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:404)
     at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:976)
     at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:198)
     at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:722)
     at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:404)
     at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:976)
     at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:198)
     at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:722)
     at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:323)
     at org.apache.axis.message.RPCElement.getParams(RPCElement.java:347)
     at org.apache.axis.client.Call.invoke(Call.java:2272)
     at org.apache.axis.client.Call.invoke(Call.java:2171)

    ....



    The genereted class Persona has a Calendar...



    Anybody knows what is going here if I can't use Date as bean properties or something like
that? 


Mime
View raw message