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 122694 - Add operation action modifies local WSDL even after pressing "Cancel"
Summary: Add operation action modifies local WSDL even after pressing "Cancel"
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Designer (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-25 00:09 UTC by Lukas Jungmann
Modified: 2009-02-19 23:29 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 Lukas Jungmann 2007-11-25 00:09:25 UTC
-have a ws from WSDL
-have an external schema file

1) invoke add operation action and press "Import XML Schema"
2) add an external schema (close the dialog using "OK" button)
3) close the add operation dialog by pressing "Cancel" button
4) refresh the service (check use original file)

=> ends with "Error: An I/O error occured.
tmp/EJBModule2/src/conf/xml-resources/web-services/NewWebServiceFromWSDL/wsdl/AddNumbers.wsdl" (and the service is not
refreshed)

5) close the project or the IDE

=> "Save" dialog for the local WSDL file appears - since I've finally pressed "Cancel" in the Add Operation dialog I'd
expect all changes to be thrown away, but local WSDL is modified (OTOH not yet saved) and contains import for the schema
from step 3 above
Comment 1 Lukas Jungmann 2007-11-25 00:16:13 UTC
One more observation - the local WSDL file is saved after adding an external schema, but still marked as modified
(remains open for writing?) after pressing "Cancel" in the Add operation dialog
Comment 2 Roderico Cruz 2008-01-22 19:57:00 UTC
ImportSchemaListener writes the import statement to the WSDL whether or not the Add Operation dialog is cancelled or not.
Comment 3 Lukas Jungmann 2008-04-14 17:16:13 UTC
moving opened issues where TM != dev to TM=TBD
Comment 4 Milan Kuchtiak 2008-11-28 10:38:27 UTC
See the issue 150551. 
Comment 5 Milan Kuchtiak 2008-12-09 12:06:38 UTC
Fixed.
See the issue 122687.
Comment 6 Quality Engineering 2008-12-10 05:59:19 UTC
Integrated into 'main-golden', will be available in build *200812100201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f87a649fbee2
User: mkuchtiak@netbeans.org
Log: Fixing multiple P4 issues(e.g. #122687, #122694, #150551) related to Add WS Operation dialog on WS created from WSDL. Action puts new schema elements to wsdl file instead of to XML schema, which is not what user really wants. Modifying wsdl using WSDL editor is better option