wsdl2java icon indicating copy to clipboard operation
wsdl2java copied to clipboard

Importing multiple WSDL overwrites ObjectFactory.java

Open shirishp opened this issue 9 years ago • 3 comments

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?

shirishp avatar Dec 28 '15 12:12 shirishp

Hello,

I had similar problem:

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

OlegsKlujs avatar Jul 05 '16 07:07 OlegsKlujs

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

atifmbaig avatar May 28 '18 18:05 atifmbaig

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

RodrigoPetter avatar Jun 15 '18 17:06 RodrigoPetter