Evaluating XML for Protocol Control Data

Reasons to Fear XML Headers

A header is a piece of metadata associated with a message or file. An XML header is just a header expressed in XML syntax

Problems seem minor.

Reasons to Love XML Headers

Advantages seem major.

Reasons to Fear XML Envelopes

An "XML Envelope" is an XML document that wraps up XML headers with an XML body or "payload"

Potential patent problems around XML envelopes:

These problems seem major.

Reasons to Love XML Envelopes

Advantages seem minor.

Conclusion: we need to work out standardized ways of using XML headers in MIME envelopes so that we can have the best of both worlds. XML envelopes seem to have no serious advantages.

Quotes

From where I sit the biggest problem with SOAP as an envelope is that it isn't transparent. The payload has to be XML (what about my GIFs?) and the XML can neither have PIs (what about my XML declaration?) nor DOCTYPEs (what about my entities?). This means that it cannot transport many XML standards as is.

John F. Schlesinger

This was a big can of worms that unexpectedly popped open at the SD2002 SOAP BOF last week. Some participants were adamant that they needed to consider and act on the envelope irrespective of the contents of the body, even if the body was malformed. For example, they wanted to be able to do forwarding and error reporting rather than just dropping the malformed message on the floor.

If they're right, and this is a common need, then I have to say, as I did then and there, that SOAP is fundamentally flawed, and cannot be repaired. The requirement to mix envelope and body in a single XML document is irreconcilable with the need to process the envelope independently of the body. Thus we pound one more nail into SOAP's coffin.

Elliotte Rusty Harold in <p0433010ab8f200e74e43@[192.168.254.4]>