Re: Processing Instructions and SOAP

There is a subtle layering here.  The SOAP envelope is an abstract Infoset 
should not have PI's.  A protocol binding can move the that envelope using 
whatever wire representation it desires.  In the case of the primer, the 
notational conventions say [1]:

"Throughout this primer, sample SOAP envelopes and messages are shown as 
XML 1.0 documents. Part 1 explains that SOAP messages are formally 
specified as XML Infosets [ 12], which is an abstract description of their 
contents. The distinction between the SOAP XML Infosets and the 
corresponding XML documents is unlikely to be of interest to those using 
this primer as an introduction to SOAP; those who do care (typically those 
who port SOAP to new protocol bindings where the messages may have 
alternative representations) should understand these examples as referring 
to the corresponding XML Infosets. Further elaboration of this point is 
provided in Section 3 of this document."

The <?xml version='1.0' ?> is part of that serialization into XML 1.0 
documents, it is not part of the Envelope infoset. 

[1] 
http://www.w3.org/2000/xp/Group/2/06/07/edcopy-soap12-part0-with-GET-additions.html#L1157

------------------------------------------------------------------
Noah Mendelsohn                              Voice: 1-617-693-4036
IBM Corporation                                Fax: 1-617-693-8676
One Rogers Street
Cambridge, MA 02142
------------------------------------------------------------------






Kevin Johnsrude <kevinj@roguewave.com>
Sent by: xml-dist-app-request@w3.org
06/18/2002 06:18 PM

 
        To:     xml-dist-app@w3.org
        cc:     (bcc: Noah Mendelsohn/Cambridge/IBM)
        Subject:        Processing Instructions and SOAP



In the current Working Draft of SOAP 1.2, Section 3, "Relation to XML" it 
is
stated:

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

However, in the SOAP 1.2 Primer many of the examples start with:
<?xml version='1.0' ?>

The above is by definition a processing instruction per XML 1.0, "2.6
Processing Instructions",
http://www.w3.org/TR/REC-xml#sec-pi

Granted, the Primer is not normative, but why was this added to examples 
in
the first place?  Is it in anticipation of allowing XML Declarations of 
the
form:
  XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>' 

in the Recommended draft of SOAP 1.2?

Thanks,
Kevin Johnsrude
Rogue Wave Software, www.roguewave.com

Received on Tuesday, 18 June 2002 19:13:49 UTC