[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Article: "The horror of XML"


processing instruction information soap
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@m... | 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/    |
+----------------------------------+---------------------------------+

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.