OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Article: "The horror of XML"

[ Lists Home | Date Index | Thread Index ]

At 12:28 PM -0500 10/30/02, Mike Champion wrote:


>"A SOAP message MUST NOT contain a Document Type Declaration.
>On receipt of a SOAP message containing a Document Type Declaration,
>a SOAP receiver MUST generate a fault (see 4.4 SOAP Fault) with
>faultcode of "Client.DTD". A SOAP message SHOULD NOT contain
>processing instruction information items. A SOAP receiver MUST
>ignore processing instruction information items in SOAP messages it receives."

Yes, so a SOAP engine needs an XML parser that will detect and report 
the presence of a document type declaration so it can respond with 
the appropriate fault. It cannot use a processor that simply ignores 
the document type declaration, nor can it use a parser that treats 
the presence of a correct document type declaration as a 
well-formedness error because it may wish to respond to that with a 
different fault than it uses for a malformed document.

In other words, XML processors used for SOAP need to report at least 
the presence of a document type declaration precisely because SOAP 
forbids these. A processor which does not handle the document type 
declaration is inadequate for SOAP.

>Since SOAP 1.2 is defined on the infoset, it presupposes that a parser
>has done its work ... AFAIK, that doesn't imply an XML syntax
>parser, just one that produces XML Infosets.
>

On no. Not another one. You mean you can send something to a SOAP 
service that is not an XML document, provided the service knows how 
to turn it into an infoset?  Yuck. I'm sure that loophole will do 
wonders for interoperability. Every day in every way I'm learning to 
despise the Infoset just a little bit more.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          XML in a  Nutshell, 2nd Edition (O'Reilly, 2002)          |
|              http://www.cafeconleche.org/books/xian2/              |
|  http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/  |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS