nilsmagnus / wsdl2java

Gradle plugin for generating java source from wsdl files
MIT License
143 stars 77 forks source link

Importing multiple WSDL overwrites ObjectFactory.java #39

Open shirishp opened 8 years ago

shirishp commented 8 years ago

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?

OlegsKlujs commented 8 years ago

Hello,

I had similar problem:

setting the option stabilizeAndMergeObjectFactory to true solved it for me...

atifmbaig commented 6 years ago

where and how I can use this option stabilizeAndMergeObjectFactory , I am importing several WSDLS and they are overwriting. I am using Netbeans 8.1

RodrigoPetter commented 6 years ago

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] ]