seems like a foolish idea to expose the raw database structure as a web service.
Far better to create a service layer around it containing a set of data access objects/data transfer objects and expose that.
There are tools in most or all ORM mapping systems that allow you to create those DAO/DTOs and most or all web services frameworks have tools to extract wsdl (which is xsd) from Java classes.