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 166576 - Create WSDL wizard does not offer schema import as per help documentation
Summary: Create WSDL wizard does not offer schema import as per help documentation
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Shivanand Kini
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-04 23:44 UTC by martinoconnor
Modified: 2016-07-07 09:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Example of an xsd file that the chooser will not detect (2.12 KB, text/xml)
2009-06-08 19:41 UTC, martinoconnor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description martinoconnor 2009-06-04 23:44:11 UTC
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.
Comment 1 Shivanand Kini 2009-06-05 01:46:43 UTC
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.

Comment 2 martinoconnor 2009-06-06 11:45:45 UTC
In this case, the chooser is failing to pick up the xsd file that i have in the project.
Comment 3 martinoconnor 2009-06-08 19:23:34 UTC
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
Comment 4 Shivanand Kini 2009-06-08 19:36:17 UTC
The chooser ignores files that dont have targetnamespaces defined.
Comment 5 martinoconnor 2009-06-08 19:41:11 UTC
Created attachment 83330 [details]
Example of an xsd file that the chooser will not detect
Comment 6 martinoconnor 2009-06-08 19:42:35 UTC
I have attached the file that the chooser is ignoring. It was generated via Netbeans Schema wizard. It has a
targetNamespace defined.
Comment 7 Shivanand Kini 2009-06-08 19:53:02 UTC
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.
Comment 8 martinoconnor 2009-06-08 19:56:19 UTC
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.
Comment 9 Shivanand Kini 2009-06-08 20:11:34 UTC
I will look into this issue. It must be project specific.
Comment 10 martinoconnor 2009-06-09 23:14:01 UTC
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. 
Comment 11 Shivanand Kini 2009-06-12 18:57:59 UTC
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 ***
Comment 12 Shivanand Kini 2009-07-17 01:51:27 UTC
Reopen to track this for 6.8
Comment 13 Shivanand Kini 2009-07-17 01:52:09 UTC
Use LogicalViewProvider to get relevant folders for the project to search for xml/wsdl files.
Comment 14 Shivanand Kini 2009-10-22 18:55:48 UTC
Fixed
Comment 15 jlautz 2009-10-30 21:49:44 UTC
Verified with Glassfish 2.2 build 20091029-0719 -- NB 6.7.1.

Need to verify with NB 6.8.
Comment 16 jlautz 2009-10-30 22:40:24 UTC
Um, ignore the above. See issue 166945 for what I saw when trying to test the bug fix.
Comment 17 jlautz 2009-10-30 22:41:27 UTC
Um, ignore the above. See issue 166945 for what I saw when trying to test the bug fix.
Comment 18 jlautz 2009-11-03 15:36:22 UTC
The bug does not appear to be fixed in GFESB v 2.2, per previous comment.
Comment 19 Martin Balin 2016-07-07 09:56:39 UTC
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