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 50299 - Cannot input WSDL file with extension other than WSDL
Summary: Cannot input WSDL file with extension other than WSDL
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-13 00:52 UTC by _ pcw
Modified: 2008-10-20 15:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
proposed patch (10.15 KB, text/plain)
2007-07-17 20:05 UTC, Lukas Jungmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ pcw 2004-10-13 00:52:25 UTC
1. Rename a WSDL file to another file extension,
say foo.xml instead of foo.wsdl.
2. In webapp, do New | Web Service Client
3. In the wizard, hit the Browse... button and
browse to the directory where foo.xml is.  It will
not be listed.
4. Enter *.xml as the file, hit <Enter>, and now
it will be shown.
5. Select foo.xml and add it.
6. Note that in the WSDL folder of the webapp, it
was copied as foo.xml (not foo.wsdl) and thus the
config file (foo.wsc) is displayed and the service
is not recognized.
Comment 1 Petr Blaha 2004-10-13 10:39:52 UTC
Remove all issues from temporary component.
Comment 2 _ pcw 2005-02-22 08:02:06 UTC
I've decided this behavior is actually acceptable, as some WSDL's on
public websites are actually named ---.xml.  I'm going to add .xml to
the file mask and I've already put <All Files> back into the
selection.  What we should do is parse the WSDL in validate() to
confirm that it is properly formed and not allow the user to select it
if it's not.
Comment 3 Lukas Jungmann 2006-10-05 21:00:41 UTC
This issue becomes valid again in 5.5 in case of creating ws client from local
wsdl as well as in case of creating ws from wsdl
Comment 4 Milan Kuchtiak 2006-10-09 10:31:17 UTC
Yes, WS/WS Clientt wizard doesn't allow to select other .wsdl extension.
Comment 5 Lukas Jungmann 2007-07-17 20:05:29 UTC
Created attachment 45249 [details]
proposed patch
Comment 6 Lukas Jungmann 2007-07-17 20:12:59 UTC
Proposed patch adds the ability to recognize asmx files produced by .Net as valid wsdl files and also adds the
possibility to select any other file in the wizards (so it is possible to pick up also any xml,... file). There's also
added simple check for presence of the wsdl namespace in selected file to at least somehow eliminate user errors and
provide him some reasonable feedback.

Feel free to apply.
Comment 8 Lukas Jungmann 2008-10-20 15:59:37 UTC
v.