Join the Conversation!
We're interested in hearing what you have to say. Sign in with your Windows Live ID to leave comments or start new discussions.

Cannot Generate Java source from wsdl

  • Hi, 

     

       I am new to AdCenter. Since AdCenter is not providing anu .jar file for APIs. I tried to generate java source from wsdl using Maven.

    I can generate classed for https://adcenterapi.microsoft.com/Api/Advertiser/v7/Reporting/ReportingService.svc?wsdl

    https://adcenterapi.microsoft.com/Api/Advertiser/v6/NotificationManagement/NotificationManagement.asmx?wsdl

    https://sharedservices.adcenterapi.microsoft.com/Api/Billing/v7/CustomerBillingService.svc?wsdl

    https://adcenterapi.microsoft.com/Api/Advertiser/v7/Administration/AdministrationService.svc?wsdl

    But when i try with these two wsdl urls am getting exception

    https://adcenterapi.microsoft.com/Api/Advertiser/v7/CampaignManagement/CampaignManagementService.svc?wsdl 

    https://sharedservices.adcenterapi.microsoft.com/Api/CustomerManagement/v7/CustomerManagementService.svc?wsdl 

     

    [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

    [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

     

    Can some one help me to find it our what is the problem ?

  • Hi Javeed,

    I would suggest to post this in the API development forum.  Someone in there will be able to assist you.

    Thanks,

    Ricky

    Ricky Poole - Web Support Specialist

    Twitter: Follow adCenter

  • A JDK 1.7 jar file for Campaigns Management v8 has finally been accomplished. Finally an end to the frustration of schema name collisions in the Java proxy stubs. See http://dvdsdirect.us/notesadcenterv8jar.jsp