metro-jax-ws
metro-jax-ws copied to clipboard
wsimport utility should not override ObjectFactory class while generating code for multiple wsdl sharing same schema
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 https://jax-ws.dev.java.net/guide/Compiling_multiple_WSDLs_that_share_the_common_schema.html
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 elements.
Environment
Operating System: All Platform: All
Affected Versions
[2.1]
Source: https://github.com/javaee/metro-jax-ws/issues/661 Author: glassfishrobot
Hi,
the link is dead, where is the alternate? I am having same issues, I have two WSDL files and the generated object factory only has methods and namespaces for the last wsdl