Re: SOAP and entities.

"Hurley, Oisin" <[email protected]>
Newsgroups gmane.comp.windows.devel.soap.general
Message-ID <[email protected]>
> Basically, can you have a DOCTYPE in a soap document? 

The short answer to this one is nope.

SOAP 1.1 says:
--------------
  A SOAP message MUST NOT contain a Document Type Declaration.  
  A SOAP message MUST NOT contain Processing Instructions.

but doesn't specify exactly what to do with entities.

SOAP 1.2 says:
--------------
  A SOAP message is specified as an XML Infoset that consists of a document 
  information item with exactly one member in its [children] property, which 
  MUST be the SOAP Envelope element information item (see 5.1 SOAP Envelope). 
  This element information item is also the value of the [document element] 
  property. The [notations] and [unparsed entities] properties are both empty. 
  The [base URI], [character encoding scheme] and [version] properties can have 
  any legal value. The [standalone] property either has a value of "yes" or has 
  no value.

  The XML infoset of a SOAP message MUST NOT contain a document type declaration 
  information item.

  A SOAP message SHOULD NOT contain processing instruction information items. 
  A SOAP receiver MUST ignore processing instruction information items in SOAP messages 
  that it receives.

which indicates that no entities can appear in the SOAP message.

 --oh

You can read messages from the SOAP archive, unsubscribe from SOAP, or subscribe to other
DevelopMentor lists at http://discuss.develop.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.