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 86631 - Create New Port/Operation dialogs: implicit imports overwrite prefixes
Summary: Create New Port/Operation dialogs: implicit imports overwrite prefixes
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Shivanand Kini
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-06 05:54 UTC by jlautz
Modified: 2006-10-10 20:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Newly-created WSDL file. (2.47 KB, application/octet-stream)
2006-10-06 05:55 UTC, jlautz
Details
WSDL after step 5 (3.92 KB, application/octet-stream)
2006-10-06 05:58 UTC, jlautz
Details
WSDL after step 8 (5.19 KB, application/octet-stream)
2006-10-06 05:59 UTC, jlautz
Details
First Schema used in scenario (copied into project) (1.41 KB, application/octet-stream)
2006-10-06 06:01 UTC, jlautz
Details
Second Schema used in scenario. (536 bytes, application/octet-stream)
2006-10-06 06:01 UTC, jlautz
Details
Validation errors seen after XML validation after step 8 (348 bytes, application/octet-stream)
2006-10-06 06:02 UTC, jlautz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jlautz 2006-10-06 05:54:03 UTC
Seen on Windows XP with NB 55 061005 and JDK 1.5.0_07:

1. Create a BPEL project and copy in at least 2 schemas, each of which define
different namespaces and elements and types with different names.
2. Open a valid WSDL file (as created by the WSDL wizard).
3. Open a new Create New Port Type dialog.
4. Leave all the defaults, except change the part type or element for the input
message to an element from the first schema.
5. Click OK.
6. Open the Create New Port Type dialog again.
7. Leave all the defaults, except change the part type or element for the output
message to an element from the second schema.
8. Click OK.
==> Run XML Validate. The validation fails, saying that the type specified from
the first schema "is not a valid xml schema type available in this wsdl file."
==> Look at the WSDL source, and note that the prefix ns: has been switched to
represent the second schema.

==> The same problem occurs when the Create New Operation dialog is used.

Attached are: Original WSDL file, WSDL file after step 5, WSDL file after step
8, and validation errors.
Comment 1 jlautz 2006-10-06 05:55:53 UTC
Created attachment 34951 [details]
Newly-created WSDL file.
Comment 2 jlautz 2006-10-06 05:58:04 UTC
Created attachment 34952 [details]
WSDL after step 5
Comment 3 jlautz 2006-10-06 05:59:16 UTC
Created attachment 34953 [details]
WSDL after step 8
Comment 4 jlautz 2006-10-06 06:01:24 UTC
Created attachment 34954 [details]
First Schema used in scenario (copied into project)
Comment 5 jlautz 2006-10-06 06:01:53 UTC
Created attachment 34955 [details]
Second Schema used in scenario.
Comment 6 jlautz 2006-10-06 06:02:51 UTC
Created attachment 34956 [details]
Validation errors seen after XML validation after step 8
Comment 7 Ritesh Adval 2006-10-07 02:39:24 UTC
The changes for this bug fix looks good.
Comment 8 Shivanand Kini 2006-10-07 02:46:41 UTC
Fixed this in release55_dev and release55

Fix reviewed by Ritesh.
Comment 9 gc140975 2006-10-10 09:36:32 UTC
Verified in the build 061009_1 and still I could reproduce the problem and the 
validation error 
Comment 10 Shivanand Kini 2006-10-10 19:42:51 UTC
I am not able to reproduce this. Jennifer, can you try to reproduce this?
Comment 11 Shivanand Kini 2006-10-10 19:45:44 UTC
Jennifer wrote:
I couldn't reproduce it. I happily watched the ns, ns0, and (for fun)
ns1 prefixes get assigned to each newly-imported schema as I defined the new
port types.


skini: changing this to fixed
Comment 12 jlautz 2006-10-10 20:02:06 UTC
Verified on Windows XP with NB 55 061009_1 and JDK 1.5.0_07:

When I perform the steps of the schema, as each new port type is defined, the
schema that is implicitly imported to make an element type available is assigned
an available default namespace ns, then ns0, then ns1, etc.

What might be confusing to the user, is that it looks like issue 86684 has not
been fixed yet.