Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4013112
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:19:51+00:00 2026-05-20T09:19:51+00:00

I am trying to generate java file from wsdlurl. some of them are working

  • 0

I am trying to generate java file from wsdlurl. some of them are working fine but some have problem in that.
here is the code.

    <plugins>

                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>jaxws-maven-plugin</artifactId>
                    <version>1.12</version>
                    <executions>
                        <execution>
                            <id>ad1</id>
                            <goals>
                                 <goal>wsimport</goal>
                            </goals>
                            <configuration>
                                <wsdlUrls>   
                                    <wsdlUrl>https://adcenterapi.microsoft.com/Api/Advertiser/v7/Reporting/ReportingService.svc?wsdl</wsdlUrl>
                                    <wsdlUrl>https://adcenterapi.microsoft.com/Api/Advertiser/v7/Administration/AdministrationService.svc?wsdl</wsdlUrl>
                                    <wsdlUrl>https://adcenterapi.microsoft.com/Api/Advertiser/v6/NotificationManagement/NotificationManagement.asmx?wsdl</wsdlUrl>
                                    <wsdlUrl>https://adcenterapi.microsoft.com/Api/Advertiser/v7/CampaignManagement/CampaignManagementService.svc?wsdl</wsdlUrl>
                                    <wsdlUrl>https://sharedservices.adcenterapi.microsoft.com/Api/Billing/v7/CustomerBillingService.svc?wsdl</wsdlUrl>
                                    <wsdlUrl>https://sharedservices.adcenterapi.microsoft.com/Api/CustomerManagement/v7/CustomerManagementService.svc?wsdl</wsdlUrl>
                                </wsdlUrls>
                                <target>2.1</target>
                                <xjcArgs>
                                    <xjcArg>-XautoNameResolution</xjcArg>
                                </xjcArgs>
                                <bindingDirectory>src/jaxws/wsdl/adCenter</bindingDirectory>
                                <keep>true</keep>
                                <packageName>com.microsoft.AdCenter.soap</packageName>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
</plugins>

I have did these before also but i don’t have any issues. Am very much confused this time.

Can you guys try to generate Java source code using wsdl in a pom file. Since i have tried in my system am getting exceptions as

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 1 of https://adcenterapi.microsoft.com/Api/Advertiser/v7/CampaignManagement/CampaignManagementService.svc?xsd=xsd1

[ERROR] (Related to above error) This is the other declaration.
  line 1 of https://adcenterapi.microsoft.com/Api/Advertiser/v7/CampaignManagement/CampaignManagementService.svc?xsd=xsd1

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 1 of https://adcenterapi.microsoft.com/Api/Advertiser/v7/CampaignManagement/CampaignManagementService.svc?xsd=xsd1

[ERROR] (Related to above error) This is the other declaration.
  line 1 of https://adcenterapi.microsoft.com/Api/Advertiser/v7/CampaignManagement/CampaignManagementService.svc?xsd=xsd1

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 1 of https://adcenterapi.microsoft.com/Api/Advertiser/v7/CampaignManagement/CampaignManagementService.svc?xsd=xsd1

[ERROR] (Related to above error) This is the other declaration.
  line 1 of https://adcenterapi.microsoft.com/Api/Advertiser/v7/CampaignManagement/CampaignManagementService.svc?xsd=xsd1

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 1 of https://adcenterapi.microsoft.com/Api/Advertiser/v7/CampaignManagement/CampaignManagementService.svc?xsd=xsd1

[ERROR] (Related to above error) This is the other declaration.
  line 1 of https://adcenterapi.microsoft.com/Api/Advertiser/v7/CampaignManagement/CampaignManagementService.svc?xsd=xsd1

Any Ideas ?

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T09:19:52+00:00Added an answer on May 20, 2026 at 9:19 am

    I’m just guessing, but it appears that there are naming collisions. You might try breaking your wsimport into multiple steps and using different <packageName> sections for each.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to generate on-the-fly PDF reports from Java objects. I have not
I'm trying to generate Java service classes from a WSDL definition I have already
I'm trying to generate a PDF from a Pentaho .prpt report file in Java.
I'm trying to generate JAXB classes from a .xsd file. I figured out that
I am trying to generate some beans from several xsd's. Unfortunately they all have
I'm trying to write a program in Java that uses osql to generate a
Im trying to consume a Java web-service, that uses a certificate. I could generate
I am trying to port some code form java do F# that generates a
I'm trying to generate a report of the activities that users have done within
I'm trying to generate a pdf file from data in a database using JasperReports

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.