You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Scott Nichol <sn...@scottnichol.com> on 2002/09/24 21:55:56 UTC
Re: timestamp passing over soap
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" <jd...@hotmail.com>
To: <so...@xml.apache.org>
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: <ma...@xml.apache.org>
> For additional commands, e-mail: <ma...@xml.apache.org>
>
>