While generating the java stub code through wsimport for multiple wsdls sharing
same (some of them) schema the ObjectFactory java class gets overwritten every time.
1. It's very difficult to merge the ObjectFactory class manually
2. If we provide seperate namespance (-p option) the java objects will get get
repeated in each package & writing code becomes very difficult.
3. We neither can rename or put the ObjectFactory class in different package as
it results in JAXBContext security error.
So ideally either wsimport should take multiple wsdls as input & resolve scheam
elements to have single merged ObjectFactory class or there should be an option
to merge ObjectFactory class while generating code for new WSDL with same package.
Although alternatives has been suggested here
I guess it will be great if the feature is part of wsimport as most of the real
SOAP wsdls (Google,Yahoo, eBay...) have multiple wsdl that share common schema