GeeCON Prague 2014*
The moose likes Web Services and the fly likes Problem generating Client stubs using METRO 2.0 Library and Netbeans 6.9(JAX-WS style) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem generating Client stubs using METRO 2.0 Library and Netbeans 6.9(JAX-WS style)" Watch "Problem generating Client stubs using METRO 2.0 Library and Netbeans 6.9(JAX-WS style)" New topic
Author

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

Chintan B Shah
Ranch Hand

Joined: Sep 23, 2008
Posts: 83
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.


[Download Error.bmp] Download



SCJA 1.0
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3833

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

What tool(s) you use here?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Chintan B Shah
Ranch Hand

Joined: Sep 23, 2008
Posts: 83
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

Joined: Mar 24, 2008
Posts: 3833

How about starting from a clean workspace? You might have some old/duplicate files in it?
Chintan B Shah
Ranch Hand

Joined: Sep 23, 2008
Posts: 83
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.
 
jQuery in Action, 2nd edition
 
subject: Problem generating Client stubs using METRO 2.0 Library and Netbeans 6.9(JAX-WS style)