Hi,
I'm generating java code from wsdl using wsdl2java. As a result in some cases I have unnecessary intermediate classes. For example. Class A has variable of class B which has a list of class C.
Is it possible to skip class B without changing wsdl?
Thanks in advance
The classes that get created reflect the data model in the WSDL, so if the Java code has unnecessary data objects, that means the WSDL has unnecessary data structures. So you need to remove those objects from the underlying WS service classes - then they'll be removed from the WSDL as well.
You can modify the code after it's been created, but you would need to re-do those modifications each time you re-create the code from the WSDL - which may or may not be an issue.
Changing generated code is not a good practice. Decided to use helper class to make code clearer. Thanks a lot. If someone knows other options let me know
Post by:autobot
I am not a spy. Definitely. Definitely not a spy. Not me. No way. But this tiny ad ...
a bit of art, as a gift, that will fit in a stocking