… to my latest. He writes;

Given that in Mark’s world a SOAP envelope is not a SOAP message, then I’m assuming that a SOAP message must logically be {SOAP envelope + other stuff}. Considering Mark’s position with respect to REST, I’m assuming that the magical “other stuff” is a resource URI and an HTTP protocol verb. I don’t want to put words in Mark’s mouth, but that’s my interpretation of his view of the world.

Pretty close, yes, but the “other stuff” is more than just the HTTP envelope of URI/method/headers, it’s also the stuff contributed by TCP/IP, Ethernet, or whatever else frames the SOAP envelope.

If my assumptions about Mark’s view are correct, I have a hard time seeing why it’s so important that this “other stuff” be externalized from the envelope. I don’t see why including the destination URI and protocol verb as headers is such an offensive concept. This is, after all, exactly what WS-Addressing does – it puts all the information necessary to process an envelope inside of the envelope itself, so the envelope is totally decoupled from its delivery mechanism. What am I missing here – why is having the envelope stand on its own such a terrible thing? It’s still a “document wrapper” at that point – one that happens to be fully self-describing, in fact.

Actually, it’s not in fact, self-descriptive, which is a large part of my complaint and concern.

If you worked your way up the stack, outside-in through the message, each frame tells you how to process the next; the ethernet frame includes a field which says that it contains an IP packet, the IP packet contains a field which says it’s a TCP packet, the TCP packet contains a port number which says it’s an HTTP message, and the HTTP message contains a header which says it’s a SOAP message. Along the way, of course, the semantics of the message are determined, including the application semantics provided by HTTP; the operation, message endpoints (the request URI), and the various headers. But there is nothing in the Ethernet, IP, TCP, HTTP, or even SOAP specs which says to expect that there are actually new operations, and new endpoint references which override those of HTTP, within the SOAP envelope itself.

Some more good comments and questions …

I’m curious as to what’s most important to Mark – constraining the number of verbs or using HTTP as a universal protocol. Hypothetically, what if WS-Addressing was written such that the wsa:Action URI was constrained to 4 verbs, each of which had a direct 1:1 correspondence with an HTTP protocol verb? That’s sort of the thought experiment I see in the WS-Transfer protocol. That’s a compromise that offers REST-style universal semantics while still keeping all the information required to process an envelope inside of the envelope itself. Along with that comes the ability to use any mechanism of moving bits from point A to point B and removes the strict reliance on HTTP.

What’s most important, IMO, is the constrained interface. So yah, I’d be all for stuffing more things into the SOAP envelope if wsa:Action were constrained to uniform interface semantics. But such an envelope, for all the same reasons of self-description above, would only be suitable to be used on top of transport protocols (like TCP), not application protocols.

What you describe in that last sentence is “protocol independence”, and I consider it the root of all WS-Evil (so to speak). HTTP isn’t a bit moving protocol, TCP is. HTTP provides the application semantics, just like WS-Transfer does. Would you consider it a selling point that your WS-Transfer-using app was made independent of WS-Transfer? I didn’t think so. That’s how absurd I see the requirement that apps which use HTTP should do so independent of HTTP.

I think he’s incorrect about his first statement – to be technically correct, you’d have to say that WS-Transfer reinvents HTTP on top of SOAP on top of any number of network protocols, one of which happens to coincidentally be HTTP

Yes, true. I just like saying “HTTP over SOAP over HTTP”. 8-)


no comment until now

Add your comment now