W3C home > Mailing lists > Public > xml-dist-app@w3.org > November 2001

RE: Formalism in SOAP spec

From: MacAndrew, Tim <tmacandrew@NetSilicon.com>
Date: Wed, 14 Nov 2001 15:59:06 -0500 (EST)
Message-ID: <AD77174F26BFD411BE7B00508BFDF56211FFA7@newbury.netsilicon.com>
To: "Henrik Frystyk Nielsen" <henrikn@microsoft.com>, <Noah_Mendelsohn@lotus.com>, <xml-dist-app@w3.org>
Cc: <xschema@us.ibm.com>, "Jones, Matthew" <MJones@NetSilicon.com>
If I could add some analysis ...

	I sent the XML Schema for SOAP 1.2
http://www.w3.org/2001/09/soap-encoding through
the "Schema Quality Checker" from IBM.  The following
errors were generated:

	Initializing Schema Quality Checker. Please wait ...
	SchemaQualityChecker has been initialized
	PROCESSING C:\Work\SOAP\soap_enc_orig.xsd time :
2001-11-14T12:44:02 ...
	C:\Work\SOAP\soap_enc_orig.xsd (file 1 of 1) now being read ...
	ERROR
	file = file:C:/Work/SOAP/soap_enc_orig.xsd line 224 column 55
	SEVERITY: 1
	ERROR TYPE: 2
	MESSAGE
	The global simpleType
http://www.w3.org/2001/09/soap-encoding:NOTATION
	is not found.
 
------------------------------------------------------------------
	ERROR
	file = file:C:/Work/SOAP/soap_enc_orig.xsd line 231 column 20
	SEVERITY: 1
	ERROR TYPE: 2
	MESSAGE
	complexType http://www.w3.org/2001/09/soap-encoding:NOTATION
	requires the following facets :
	enumeration
	
------------------------------------------------------------------

I believe there are two error conditions that are
causing this:

	1) An <attribute> (specifically the
	"NOTATION" attribute) cannot have a
	'type' that is a <complexType>.
	Perhaps the NOTATION <complexType> should've
	been declared as a <simpleType> ... or
	perhaps the <attribute> NOTATION was
	really meant to be an <element>.

	2) Use of the NOTATION (built-in Schema
	type) requires that (one of?) the facets:
		length 
		minLength 
		maxLength 
		pattern 
		enumeration 
		whiteSpace
	be used.

Please note that I had to add the XML prolog:
	<?xml version = '1.0' encoding = 'UTF-8'?>
to the Schema document ... which I believe is required.

	Also, if I could suggest that naming of an
<attribute> (e.g. "NOTATION") that is the same as
a <complexType> that is also a "built-in" Schema type
is confusing.  Although it is "legal" Schema (an
exercise in namespacing?), it is difficult to read.

Thank you.

Tim MacAndrew
NetSilicon Inc - Softworks Group
TMacAndrew@NetSilicon.com

Reference: http://www.alphaworks.ibm.com/tech/xmlsqc
Received on Wednesday, 14 November 2001 16:38:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:04 GMT