wsdl2java: what to do with client-side (re-)generated java bean classes

D

dukehoops

I have a Swing application that is also a client of a web service I
created. That Swing client uses several Java Bean classes, which are
also used as arguments/return types in the said web service. When I use
wsdl2java to generate client-side web service stubs, source code for
these JavaBean data beans is also re-generated, so the client
application ends up with 2 copies for each JavaBean:

-one in hand-written application.beans package, and
-one in wsdl2java-generated application.wsgenerated package.

Since the Swing part of my client app makes use of the
application.beans package, I'd like to be able to pass *those*
JavaBeans as args to web service operations. Is that reasonable?
However, generated javaBean sources have some axis-added static methods
not present in original JavaBeans - such as getSerializer and
getDeserializer. Does that mean that using hand-coded JavaBeans as args
to webservice is not the right way to go, and I must use the generated
source? If not, how do I reconcile having 2 versions of source code on
client-side for my JavaBeans?

thanks
-nikita
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top