wsdl2java
wsdl2java copied to clipboard
Importing multiple WSDL overwrites ObjectFactory.java
Hi,
I tried importing multiple WSDL (different endpoints as well) with this plugin. It generated all the classes perfectly. The only problem is, my ObjectFactory has only bindings of last WSDL imported.
There is a similar issue for wsimport
:
https://java.net/jira/browse/JAX_WS-363
https://java.net/jira/browse/JAX_WS-661
Is there any way to avoid this problem? Or generate an ObjectFactory which has all WSDL's bindings?
Hello,
I had similar problem:
setting the option stabilizeAndMergeObjectFactory to true solved it for me...
where and how I can use this option ** stabilizeAndMergeObjectFactory **, I am importing several WSDLS and they are overwriting. I am using Netbeans 8.1
Did you guys tried specify a package for the generated classes?
I'm doing as follow in my build.gradle and don't have any problem:
wsdlsToGenerate = [ ['-p', 'boo.wsdl.v1', ext.schemaV1], ['-p', 'boo.wsdl.v2', ext.schemaV2] ]