Forums Register Login

wsdl2java generation. skiping intermediate classes

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
What are you trying to achieve by this? In other words, why does it matter whether there are maybe a few unneeded classes?
+Pie Number of slices to send: Send
This classes add additional complexity to my code that's why I'm trying to find out if it is possible to avoid it.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Unfortunately I can't modify wsdl. If I understand you correctly I should live with those intermediate classes.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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
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
https://gardener-gift.com


reply
reply
This thread has been viewed 535 times.
Similar Threads
SOAP (Axis)
How to create Java client for .NET webservice
Axis: Should I publish wsdl again?
WSDL2JAVA generating all the Client code in one solid Java file
WSDL: Schema Duplicate cause dupicate classes
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:54:16.