Skip to main content

Same Entity Classes on Client and Server Side

No replies
Joined: 2012-08-20
Points: 0

Hey together,

I am developing a client-server application which communicates via WSDL/SOAP and I am using JAX-WS. On the server side I implemented data transfer objects (DTOs) which shall be transmitted to the client. The server provides an EJB implementation for the web services. The client makes use of the jaxws:wsimport maven plugin to generate the proxy classes.

Is it possible to use the DTO classes also on the client side, i.e. forcing the maven plugin to use the DTO classes for unmarshalling instead of generating its own classes?

Thanks a lot