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 107992 - Test web service operation displays duplicit output
Summary: Test web service operation displays duplicit output
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-25 12:36 UTC by Jaroslav Pospisil
Modified: 2007-07-23 15:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (73.21 KB, image/png)
2007-06-25 12:38 UTC, Jaroslav Pospisil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Pospisil 2007-06-25 12:36:31 UTC
Build 200706241200,JDK1.6._02,Windows Vista

1)Start IDE with clean userdir
2)Add Tomcat server (tested on 6.0.13)
3)Create new web module (J2EE1.4,sources 1.5)
4)Add default web service(enter only package name and click finish) and Add operation in designer
5)Deploy web service
6)Invoke Test Web Service action
ERROR: Displayed page contains duplicit result - for NewWebService, but also for NewWebServiceService.
Both links points to the same wsdl.
Attaching screenshot.
Comment 1 Jaroslav Pospisil 2007-06-25 12:38:23 UTC
Created attachment 44333 [details]
screenshot
Comment 2 Milan Kuchtiak 2007-06-27 15:13:22 UTC
This should be fixed.

See the diff:

Checking in JaxWsServiceCreator.java;
/cvs/websvc/core/src/org/netbeans/modules/websvc/core/dev/wizard/JaxWsServiceCreator.java,v  <--  JaxWsServiceCreator.java
new revision: 1.8; previous revision: 1.7

or

+++ JaxWsServiceCreator.java	27 Jun 2007 13:15:47 -0000	1.8
@@ -212,7 +212,6 @@
         DataObject dobj = dTemplate.createFromTemplate(df, wsName);
         FileObject createdFile = dobj.getPrimaryFile();
         
-        /* don't rely on annotation listener to notify the service creation */
         final JaxWsModel jaxWsModel = projectInfo.getProject().getLookup().lookup(JaxWsModel.class);
         if ( jaxWsModel!= null) {
             ClassPath classPath = ClassPath.getClassPath(createdFile, ClassPath.SOURCE);
@@ -228,7 +227,6 @@
                 }
 
             }); 
-            jaxWsModel.write();
             JaxWsUtils.openFileInEditor(dobj, service);
         }
Comment 3 Jaroslav Pospisil 2007-07-23 15:48:17 UTC
VERIFIED