Results 1 to 3 of 3

Thread: can't generate Java SOAP stubs with wsimport

  1. #1
    Join Date
    Aug 2012
    Location
    Germany
    Posts
    12
    Rep Power
    3

    Default 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?

  2. #2
    Join Date
    Dec 2012
    Posts
    8
    Rep Power
    3

    Default

    same here...

  3. #3
    Join Date
    Sep 2012
    Location
    jhoncarter2030@gmail.com
    Posts
    61
    Rep Power
    3

    Default

    Hey, Why don't you try after copying that wsdl file to another location or just after stopping zmcontrol ? It should work.

Similar Threads

  1. Java Soap Notification Example
    By RizziCR in forum Developers
    Replies: 9
    Last Post: 09-14-2011, 12:39 AM
  2. [SOLVED] Java Soap Client
    By drobe12 in forum Developers
    Replies: 2
    Last Post: 11-16-2008, 08:29 PM
  3. SOAP with JAVA
    By mauretto79 in forum Developers
    Replies: 1
    Last Post: 06-13-2008, 10:06 PM
  4. [SOLVED] Java with SOAP
    By tsx in forum Developers
    Replies: 4
    Last Post: 05-05-2008, 09:30 PM
  5. [SOLVED] SOAP API from Java
    By liriarte in forum Developers
    Replies: 8
    Last Post: 09-14-2007, 05:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •