• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Problem generating Client stubs using METRO 2.0 Library and Netbeans 6.9(JAX-WS style)  RSS feed

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I am getting an error message(please see attachment as well) while generating client stubs for this WSDL.

https://ws.envoyprofiles.com/WebService/EPAPI_1.0/wsdl.wsdl


[ERROR] A class/interface with the same name "https.ws_envoyprofiles_com.webservice.epapi_1_0.namespace.EventSubscriptionStatisticsRequest" is already in use. Use a class customization to resolve this conflict.
line 3143 of file:/C:/TestOutage/xml-resources/web-service-references/wsdl/wsdl/ws.envoyprofiles.com/WebService/EPAPI_1.0/wsdl.wsdl

[ERROR] (Relevant to above error) another "EventSubscriptionStatisticsRequest" is generated from here.
line 1199 of file:/C:/TestOutage/xml-resources/web-service-references/wsdl/wsdl/ws.envoyprofiles.com/WebService/EPAPI_1.0/wsdl.wsdl

[ERROR] A class/interface with the same name "https.ws_envoyprofiles_com.webservice.epapi_1_0.namespace.EventSubscriptionStatisticsResponse" is already in use. Use a class customization to resolve this conflict.
line 3148 of file:/C:/TestOutage/xml-resources/web-service-references/wsdl/wsdl/ws.envoyprofiles.com/WebService/EPAPI_1.0/wsdl.wsdl

[ERROR] (Relevant to above error) another "EventSubscriptionStatisticsResponse" is generated from here.
line 1207 of file:/C:/TestOutage/xml-resources/web-service-references/wsdl/wsdl/ws.envoyprofiles.com/WebService/EPAPI_1.0/wsdl.wsdl

[ERROR] A class/interface with the same name "https.ws_envoyprofiles_com.webservice.epapi_1_0.namespace.MemberCustomFieldSimpleSetRequest" is already in use. Use a class customization to resolve this conflict.
line 3719 of file:/C:/TestOutage/xml-resources/web-service-references/wsdl/wsdl/ws.envoyprofiles.com/WebService/EPAPI_1.0/wsdl.wsdl

[ERROR] (Relevant to above error) another "MemberCustomFieldSimpleSetRequest" is generated from here.
line 1541 of file:/C:/TestOutage/xml-resources/web-service-references/wsdl/wsdl/ws.envoyprofiles.com/WebService/EPAPI_1.0/wsdl.wsdl

[ERROR] Two declarations cause a collision in the ObjectFactory class.
line 3148 of file:/C:/TestOutage/xml-resources/web-service-references/wsdl/wsdl/ws.envoyprofiles.com/WebService/EPAPI_1.0/wsdl.wsdl

[ERROR] (Related to above error) This is the other declaration.
line 1207 of file:/C:/TestOutage/xml-resources/web-service-references/wsdl/wsdl/ws.envoyprofiles.com/WebService/EPAPI_1.0/wsdl.wsdl

[ERROR] Two declarations cause a collision in the ObjectFactory class.
line 1541 of file:/C:/TestOutage/xml-resources/web-service-references/wsdl/wsdl/ws.envoyprofiles.com/WebService/EPAPI_1.0/wsdl.wsdl

[ERROR] (Related to above error) This is the other declaration.
line 3719 of file:/C:/TestOutage/xml-resources/web-service-references/wsdl/wsdl/ws.envoyprofiles.com/WebService/EPAPI_1.0/wsdl.wsdl

[ERROR] Two declarations cause a collision in the ObjectFactory class.
line 1199 of file:/C:/TestOutage/xml-resources/web-service-references/wsdl/wsdl/ws.envoyprofiles.com/WebService/EPAPI_1.0/wsdl.wsdl

[ERROR] (Related to above error) This is the other declaration.
line 3143 of file:/C:/TestOutage/xml-resources/web-service-references/wsdl/wsdl/ws.envoyprofiles.com/WebService/EPAPI_1.0/wsdl.wsdl



Now, I am a complete novice to JAXB and its customization and would appreciate if someone can provide step-by-step tutorial to fix this issue.

Thanks in advance.

Regards,
Chintan.
Filename: Error.bmp
Description: Error generating client stubs through JAX-WS style
File size: 768 Kbytes
 
Bartender
Posts: 4089
54
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am getting an error message(please see attachment as well) while generating client stubs for this WSDL.


What tool(s) you use here?
 
Chintan B Shah
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Vijitha,

I am using Netbeans IDE(6.9) and creating a web application with METRO2.0 Library.

Then, right click on Web application-->"Generate New Web-Service Client"-->GUI contains following things

1. Specify WSDL URL.
2. Place where you want to store stubs
3. Type(JAX-RPC/JAX-WS). I selected JAX-WS.

Once done, hit Finish.

Essentially, following the JAX-WS Web Service Client wizard

The time when it tries to generate the stubs is when I get that error message.

Thanks for your time and response.

Thanks
Chintan.
 
Vijitha Kumara
Bartender
Posts: 4089
54
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about starting from a clean workspace? You might have some old/duplicate files in it?
 
Chintan B Shah
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vijitha,

I have already tried that. Doesnt work.


Created/deleted multiple new applications from scratch and tried to create web-service client, still same issue.

Thanks
Chintan.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!