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 86309 - Importing schemas: inconsistent behavior
Summary: Importing schemas: inconsistent behavior
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Shivanand Kini
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-02 14:52 UTC by jlautz
Modified: 2007-01-18 23:54 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jlautz 2006-10-02 14:52:13 UTC
Seen on Windows XP with NB 55 060929 and JDK 1.5.0_07:

I see inconsistencies in how different ways of importing schemas behave, in
terms of what the user sees in the graphical tree view and what is generated in
the WSDL source. It would be good for the HIE folks to look at this sometime.

In all cases, start with a new WSDL documented created using the WSDL wizard
with default values. Have a few .xsd schema files in the same project as the
WSDL document.

Adding a referenced schema from root document or Types node:

1. Select root node or Types node, Add -> Import Schema. 
==> Note that a default prefix is specified.
2. Choose the schema and click OK.
3. Click the new Referenced Schema element. 
==> Note that in the properties pane, the prefix is "null".
4. Look at the source.
==> Note that the prefix is added to the Definition element.
5. Delete the referenced schema.
==> Note that the prefix definition is NOT removed from the Definition element.
==> If you delete and add the same schema multiple times, the Definition element
contains multiple prefix definitions for the same schema namespace.

Add an import from Referenced Schemas element:
1. Select Referenced Schemas element. Add -> Import.
==> Note that no default prefix is specified.
2. Choose a schema, specify a prefix, and click OK.
==> Note that in the properties pane, the prefix is as specified.
3. Look at the source.
==> Note that the prefix is added to the schema element.
4. Delete the added schema.
==> Note that the prefix is not deleted from the schema element.

==> If you mix the two:
1. Add a schema via the referenced schema with a prefix (prefix added to schema
element in source).
2. Delete the referenced schema.
3. Add the same schema again via the Types or root node. Specify a default prefix.
==> The new prefix is added to the Definition element, but in the properties
pane for the referenced schema, the Prefix property refers to the name on the
Schema element, not the prefix the user just specified.
Comment 1 Ritesh Adval 2007-01-18 23:54:11 UTC
Functionality works so making it enhancement.