can't generate Java SOAP stubs with wsimport
Hello,
I want to use wsimport (from Java SDK) to build SOAP-stubs from http://myserver/service/wsdl/zimbraService.wsdl
When I start
C:\TEMP\ws>c:\programme\java\jdk1.7.0_09\bin\wsimp ort.exe -d bin -s src -keep -p my.test.package http://myserver/service/wsdl/ZimbraServ
ice.wsdl
I get just a lot of errors (>1800 lines..) like:
parsing WSDL...
[ERROR] A class/interface with the same name "my.test.package.zimbra.Action" is already in use. Use a class customization to resolve this conflict.
line 5660 of http://myserver/service/wsdl/zimbraMail.xsd
[ERROR] (Relevant to above error) another "Action" is generated from here.
line 6657 of http://myserver/service/wsdl/zimbraAdmin.xsd
[ERROR] A class/interface with the same name "my.test.package.zimbra.DistributionListBy" is already in use. Use a class customization to resolve this conflict.
line 228 of http://myserver/service/wsdl/zimbra.xsd
[ERROR] (Relevant to above error) another "DistributionListBy" is generated from here.
line 6758 of http://myserver/service/wsdl/zimbraAdmin.xsd
[ERROR] A class/interface with the same name "my.test.package.zimbra.InviteInfo" is already in use. Use a class customization to resolve this conflict.
line 6008 of http://myserver/service/wsdl/zimbraAdmin.xsd
[ERROR] (Relevant to above error) another "InviteInfo" is generated from here.
line 1192 of http://myserver/service/wsdl/zimbraMail.xsd
[ERROR] A class/interface with the same name "my.test.package.zimbra.DistributionListInfo" is already in use. Use a class customization to resolve this conflict.
line 2184 of http://myserver/service/wsdl/zimbraAdmin.xsd
[ERROR] (Relevant to above error) another "DistributionListInfo" is generated from here.
line 753 of http://myserver/service/wsdl/zimbraAccount.xsd
[ERROR] A class/interface with the same name "my.test.package.zimbra.Right" is already in use. Use a class customization to resolve this conflict.
line 1148 of http://myserver/service/wsdl/zimbraAccount.xsd
[ERROR] (Relevant to above error) another "Right" is generated from here.
line 4153 of http://myserver/service/wsdl/zimbraMail.xsd
[ERROR] A class/interface with the same name "my.test.package.zimbra.AccountACEInfo" is already in use. Use a class customization to resolve this conflict.
line 1159 of http://myserver/service/wsdl/zimbraAccount.xsd
[ERROR] (Relevant to above error) another "AccountACEinfo" is generated from here.
line 4164 of http://myserver/service/wsdl/zimbraMail.xsd
[ERROR] This error is caused because on Windows you cannot have both "AccountACEinfo.java" and "AccountACEInfo.java" in the same directory.
...
I tried also ZimbraUserService.wsdl and ZimbraAdminService.wsdl, also without success.
Any hints how to solve this?