This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 86974 - can't add same Web Services twice
Summary: can't add same Web Services twice
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-RPC (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: bhate
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-11 23:04 UTC by lucyli
Modified: 2008-03-13 00:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lucyli 2006-10-11 23:04:46 UTC
NB5.5 RC1

1. create new WP project (j2ee1.4)
2.  new web serivice clinet/ add web serivecs from url:
http://api.google.com/GoogleSearch.wsdl
3. add ok, test ok
4. do step 2. again , or add the same GoogleSearch.wsdl  from your local file

expected : another reference node GoogleSearchService2 appears 
result: the previous one is replaced
Comment 1 Milan Kuchtiak 2006-10-12 10:12:17 UTC
Yes, this issue has been resolved for JAX-WS web services (Java EE 5 projects).
Comment 2 Jiri Prox 2007-09-17 21:42:57 UTC
Obsolete milestone, please reevaluate
Comment 3 bhate 2007-09-28 18:36:19 UTC
This will require merging change from jaxws to create multiple clients.
targetting for 6.0.
Comment 4 Lukas Jungmann 2008-03-12 14:45:47 UTC
I would consider having 2 clients for one service in one project as a corner case (=> P4).

The best solution would be to use one client per used WSDL source "mapping" and if there already exists a client for
given WSDL source then show some meaningful message to the user (ie. sth like "Web Service Client for <someWSDL> already
exists in a project <projectName>") and do nothing (this check could be implemented in the new ws client wizard).

Also note that there are already other ways how one can point existing client to a different wsdl source (Refresh action
on the client node)
Comment 5 bhate 2008-03-13 00:33:44 UTC
This was actually fixed due to fixes for 86975,127575.
In case we have same wsdl(url/file) used to create clients(in same or even different project), the webserviceregistry
was not creating separate entries due to same servicename. I have added a check which distinguishes webserviceregistry
entries based on not only service name but also local wsdl file url (which maps to the this client).
fixed changeset 62ee4cb15873.