Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Shared library class between client and server

daniele licitra
Ranch Hand
Posts: 81
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to all.

I have a library with some entities: the classes representing the MODEL. For example, i have the class Order. I have also another library with EJBs for the CONTROL layer to persist the entity on the DB.

Then, I have two application, the first is a server and the second is a client.

The server has a SOAP webservice with a simple method : it get order and save it on DB using the two library.
The client send orders to the server by the webservice client created by wsimport maven plugin.

When maven generates the client from the wsdl, it create another Order class, different from the first, so I can't use EJB from the control layer library, so i must recreate the EJB or traslate generated Order class in the entity class Order.

Does exist a simple way to force wsimport to use some classes from provided library?

This is the maven plugin

<!-- <bindingFiles>

I tryed using episode file but without success
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic