Possible/feasible to hook into the wsdl2code code generation?

Steven De Herdt <[email protected]> Mon, 18 Dec 2023 17:30:27 +0100
Newsgroups gmane.text.xml.axis.user
Message-ID <[email protected]>
Hello

The project I'm working on is a client implementing dozens of WSDL 
operations/SOAP call types.  The SOAP bodies involved all follow a 
general structure, which is described in as many dozens of XSD's, 
differing only in some types several levels deep into the SOAP body. 
Error representation, bundling requests etc. are all exactly the same.

When generating the service stubs, wsdl2code helpfully prepares all 
classes and types involved.  These of course also follow the same 
structure for each call type, but all those parallel classes are of 
unrelated types.  I understand they can't just be the same, but it would 
be nice for code reuse if they each implemented an interface describing 
common methods.  The names of the methods are already the same, return 
types declared in the interfaces could be these new interfaces, so I 
would just need an "implements GenericAnswerType" or some-such in the 
generated classes.

Now my question: can I get something like that by plugging into Axis' 
code generation?  Or is there perhaps another way to do code 
transformation or patching from Maven?  If possible, I'd like to avoid 
'tampering' manually with the generated sources.

Thanks for any pointers you might give me.
-Steven