Re: Whoops - Example is invalid upate attached

James,

Ignore, my comments below. After looking closer, I now see you wanted me 
to look at SchemaA.xsd, not the instance document.  It says:

        <!--  Note that the import below ONLY imports schema "B". Schema 
"C" is imported by declaration from wityhin schema "B", so you will not 
see it here  -->

The following reference is invalid:

                                <xs:element ref="C:ElementFromC" minOccurs
="1"/> 

You claimed it was valid, but I validated it myself and got the following 
error message:

Severity        Description     Resource        In Folder       Location 
Creation Time
2       src-resolve.4.2: Error resolving component 'C:ElementFromC'. It 
was detected that 'C:ElementFromC' is in namespace 'http://www.testC.com', 
but components from this namespace are not referenceable from schema 
document 
'file:///D:/workspaces/James/Example/data/RLG/MISC/WSDL%202.0%20Problem%20Examples/SchemaA.xsd'. 
If this is the incorrect namespace, perhaps the prefix of 'C:ElementFromC' 
needs to be changed. If this is the correct namespace, then an appropriate 
'import' tag should be added to 
'file:///D:/workspaces/James/Example/data/RLG/MISC/WSDL%202.0%20Problem%20Examples/SchemaA.xsd'. 
SchemaA.xsd     Example/data/RLG/MISC/WSDL 2.0 Problem Examples line 18 
July 20, 2005 12:23:32 AM

The error message says you need to import namespace C.

I am using the Xerces parser for validation (actually integrated in the 
Eclipse Web Tools Platform which you can download from [1]. How are you 
validating your schema?

[1] http://eclipse.org/webtools


Arthur Ryman,
Rational Desktop Tools Development

phone: +1-905-413-3077, TL 969-3077
assistant: +1-905-413-2411, TL 969-2411
fax: +1-905-413-4920, TL 969-4920
mobile: +1-416-939-5063, text: 4169395063@fido.ca
intranet: http://labweb.torolab.ibm.com/DRY6/



Arthur Ryman/Toronto/IBM
07/20/2005 12:00 AM

To
"RDBMS" <RDBMS@aol.com>, WSD WG
cc
"Booth, David \(HP Software - Boston\)" <dbooth@hp.com>
Subject
Re: Whoops - Example is invalid  upate attached





James,

I now undertand the confusion. In your example, you give an XML instance 
document, ExampleSchemaHierarchy.xml, that contains elements declared in 
the other schemas. In that case there is no need for an xs:import.

That is not what we are talking about in the WSDL 2.0 spec. There we are 
taking about refering to element declarations via QNames.

When a WSDL document refers to an element declaration by QName, for 
example to declare the messages in an operation, then it must have an 
xs:import for the namespace of the element it is refering to. This is just 
like in XSD when you build up a new element declaration from other element 
declarations.

Arthur Ryman,
Rational Desktop Tools Development

phone: +1-905-413-3077, TL 969-3077
assistant: +1-905-413-2411, TL 969-2411
fax: +1-905-413-4920, TL 969-4920
mobile: +1-416-939-5063, text: 4169395063@fido.ca
intranet: http://labweb.torolab.ibm.com/DRY6/



"RDBMS" <RDBMS@aol.com> 
07/19/2005 03:57 PM
Please respond to
"RDBMS"


To
Arthur Ryman/Toronto/IBM@IBMCA, "Booth, David \(HP Software - Boston\)" 
<dbooth@hp.com>
cc

Subject
Whoops - Example is invalid  upate attached






Hi David, Arthur,
 
In my haste, I found that I had incorporated and invalid type declaration.
 
In the attached, I've corrected it.
 
Thanks !
J. Bean
P.O. Box 30171
Phoenix, AZ  85046-0171
 
RDBMS@aol.com
XML-Guy@hotmail.com

Received on Wednesday, 20 July 2005 04:33:43 UTC