Olivier,
One way is to create Javabeans wrappers on your database tables and expose them using the Web service. For example your entire table could be represented using an array of Javabeans and Metro (the Web services stack in GlassFish) handles serializing/de-serializing standard Javabeans very well.
-Arun
[Message sent by forum member 'arungupta' (arungupta)]
http://forums.java.net/jive/thread.jspa?messageID=232123