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.
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.
Remove all issues from temporary component.
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.
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
Yes, WS/WS Clientt wizard doesn't allow to select other .wsdl extension.
Created attachment 45249 [details] proposed patch
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.
Fixed: http://websvc.netbeans.org/source/browse/websvc/core/src/org/netbeans/modules/websvc/core/client/wizard/Bundle.properties?r1=1.35&r2=1.36 http://websvc.netbeans.org/source/browse/websvc/core/src/org/netbeans/modules/websvc/core/dev/wizard/Bundle.properties?r1=1.6&r2=1.7 http://websvc.netbeans.org/source/browse/websvc/core/src/org/netbeans/modules/websvc/core/dev/wizard/WebServiceFromWSDLPanel.java?r1=1.8&r2=1.9 http://websvc.netbeans.org/source/browse/websvc/core/src/org/netbeans/modules/websvc/core/client/wizard/ClientInfo.java?r1=1.40&r2=1.41 Thank You, I've mostly used the patch
v.