Hi all, I have a conceptual question for you. Let's consider a UserService to manage users in a web application. In this service we have for example these methods to expose as WebService: - User findUser(String username) - List findAllUsers() - void registerNewUser(User user)
This service is implemented (server-side) using Hibernate for persistence. Obviously, the User object passed to the client can be different from the User object that the client want. So, for example, the client application builds his own User business object, starting from the User DTO retrieved from the Web Service. My problem is the following: when generating client stub, entity names (e.g. User) can be equal for both client and server side. In my app now I have: Client: org.example.businessobject.User org.example.ws.User - Generated from WSDL2Java Server: org.example.service.User So in the client app, the entity User has the same name, that obviously can be distinguished using the fully qualified name. Essentially, what I want is to mantain client and server class names, customizing the class names the wsdl2java creates (for example, calling org.example.ws.User instead org.example.ws.UserDTO). >From what I know it's only possible to customize package <-> namespace mappings...is it possible to customize Entity/Class names too? Thanks in advance for help and suggestions. -- View this message in context: http://www.nabble.com/Ws-tp21665960p21665960.html Sent from the mojo - user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
