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.
Create WSDL wizard does not offer schema import as per help documentation. The help documentation mentions an option to import schema into the WSDL but this option is missing from the wizard. This functionality is available in 6.5 but is missing from 6.7.
The schema import can be done directly from the element or type chooser, when configuring parts. i.e. all schema present inside the project are automatically shown in the chooser, and all related files get automatically imported. For exteral schemas (outside of project), please use external schema wizard to retrieve them into current project. The documentation needs to be updated. Let me know if more was expected.
In this case, the chooser is failing to pick up the xsd file that i have in the project.
Best workaround I can find is to use Netbeans 6.5 to generate the WSDL, as the type chooser dialog does not detect and import the schema files in the project as per comments from skini above
The chooser ignores files that dont have targetnamespaces defined.
Created attachment 83330 [details] Example of an xsd file that the chooser will not detect
I have attached the file that the chooser is ignoring. It was generated via Netbeans Schema wizard. It has a targetNamespace defined.
I tried with netbeans 6.7 RC2 and it does work. In abstract configuration page, go to chooser, select By File, select StaticData.xsd, select the element StaticDataRequest. Click finish, the xsd is imported, and wsdl file validates successfully.
The By File node is empty for me. I'm in a Java Class Library project on Netbeans 6.7 RC2. Under JDK1.6.0_14. Perhaps there is something project or JDK specific.
I will look into this issue. It must be project specific.
It seems that the chooser will not load the xsd files if they are in the default package in the source tree. A workaround is to make sure the xsd files you want to reference are located in a package other than the default package in the source tree.
another issue has been filed tracking this. I have cc-ed the reporter on that issue too. *** This issue has been marked as a duplicate of 166945 ***
Reopen to track this for 6.8
Use LogicalViewProvider to get relevant folders for the project to search for xml/wsdl files.
Fixed
Verified with Glassfish 2.2 build 20091029-0719 -- NB 6.7.1. Need to verify with NB 6.8.
Um, ignore the above. See issue 166945 for what I saw when trying to test the bug fix.
The bug does not appear to be fixed in GFESB v 2.2, per previous comment.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss