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 161496 - Two inline schemas cannot reference each other
Summary: Two inline schemas cannot reference each other
Status: CLOSED INVALID
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Model (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Shivanand Kini
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-30 17:14 UTC by Kirill Sorokin
Modified: 2009-10-30 21:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample WSDL (1.23 KB, text/xml)
2009-03-30 17:15 UTC, Kirill Sorokin
Details
Sample WSDL as text/plain (1.23 KB, text/plain)
2009-03-30 17:17 UTC, Kirill Sorokin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill Sorokin 2009-03-30 17:14:33 UTC
See the attached WSDL document. The 'ns0' namespace prefix is declared on the <definitions> element, and is used in the
inlined schema. The document fails validation, thought it seems to be a valid thing from the spec POV.
Comment 1 Kirill Sorokin 2009-03-30 17:15:10 UTC
Created attachment 79068 [details]
Sample WSDL
Comment 3 Kirill Sorokin 2009-03-30 17:17:13 UTC
Created attachment 79069 [details]
Sample WSDL as text/plain
Comment 4 Kirill Sorokin 2009-03-30 17:27:10 UTC
The initial evaluation seems to be wrong. :( Sorry about that. Looks like the two inline schemas in the sample document
simply cannot reference each other. It's not the namespace prefix issue.
Comment 5 Kirill Sorokin 2009-03-30 17:55:02 UTC
The original reported states that this is an "external" WSDL, changing which is extremely undesirable. Since this is  in
some sort a customer request, moving to P2.
Comment 6 Shivanand Kini 2009-05-06 23:17:05 UTC
This is not related to the namespace prefix. Any schema needs to import a schema in order to use its types.

So in this case, the second schema needs to have a import statement with the targetnamespace of the first schema. The
location can be omitted.

Add the following line to the second schema.
<xsd:import namespace="http://j2ee.netbeans.org/wsdl/newWSDL/xsd"/>
Comment 7 jlautz 2009-10-30 21:00:10 UTC
Marking as closed.