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 73370 - Test Web Service action doesn't reflect serviceName attr
Summary: Test Web Service action doesn't reflect serviceName attr
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 5.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Radko Najman
URL:
Keywords:
Depends on:
Blocks: 73536
  Show dependency tree
 
Reported: 2006-03-08 10:27 UTC by Petr Blaha
Modified: 2006-05-31 18:00 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 Petr Blaha 2006-03-08 10:27:40 UTC
[build 20060308]
I have a web service with serviceName attribute in annotation @WebService. The
URL doesn't reflect this change.
Comment 1 Lukas Jungmann 2006-03-09 13:22:20 UTC
It seems that websvc logical node in prj. view does not reflect correct name
when constructing URL for test action (not only, some other actions suffer from
this too) in case of JAX-WS2.0 ws.

assume following entry in jax-ws.xml:
  <services>
    <service name="MyWebService">
      <implementation-class>webservices.MyWebServiceImpl</implementation-class>
    </service>
  </services>

it seems that URL is constructed from "name" attribute, but I think that
something similar to following algorithm should be used instead:

String urlPrefix = http://localhost:port/appname;
String urlPart;
if <implementation-class> is annotated with "@WebService(serviceName=...)"
then urlPart = value of serviceName attribute in WebService annotation
else urlPart = implementation-class name + "Service"

return urlPrefix + urlPart
Comment 2 Lukas Jungmann 2006-03-09 13:26:24 UTC
increasing to P2, see reason in my previous comment
Comment 3 Lukas Jungmann 2006-03-21 22:30:40 UTC
Other influenced action is creation of wsclient for ws from other project.
Comment 4 Lukas Jungmann 2006-03-24 21:33:15 UTC
the algorithm described above (regarding ws url construction) is correct for
Java EE 5 apps, but not for J2EE 1.4 ones. There should be fallback to algorithm
used for "Add to registry" action if called websvc resides in J2EE 1.4 project.

We could also make the textfield next "project" combobox editable _after_
webservice selection to allow user to correct URL of websvc if the value
suggested by IDE is incorrect. Current workaround is to copy&paste url between
textfields, but this is not easy to find.
Comment 6 Lukas Jungmann 2006-03-31 15:12:40 UTC
v.