There is no support built into Apache SOAP for java.sql.Timestamp.  It does
not follow the bean pattern, so it cannot be [de-]serialized using the
BeanSerializer.  One option for you is to write your own serializer and
deserializer code.  Another option is to pass a java.util.Date instead by
wrapping the method and calling the wrapper.  This method requires a hack if
the Timestamp is the return value, e.g.

    java.sql.Timestamp getLastUpdate(int recordID) {
        // this does the real work
    }

    // need bogus parameter to have a different signature
    java.util.Date getLastUpdate(int recordID, int bogus) {
        java.sql.Timestamp ts = getLastUpdate(recordID);
        return new java.util.Date(ts.getTime());
    }

Scott Nichol

----- Original Message -----
From: "Jonathan Roberts" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 23, 2002 2:53 AM
Subject: timestamp passing over soap


>
> Hi,
>
> Has anyone had any problems with java.sql.timestamp being passed over the
> soap server/client interface.
>
> I had problems on the soap server side so included it in the deployment
> descriptor. However whenever its value is non null it causes the client
side
> to throw an exception.
>
> Cheers
>
> Jonathan
>
> _________________________________________________________________
> Join the world’s largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to