Otis wrote:
Message:
- command + additional information for the command, in one message.
object:
- data + behavior on the data.
When you pass an object over a wire, you actually only pass the data ! . So you pass less than an actual message.
So, traditionally, then (at least in SO), the message is a single XML document? Is the XML document "typed"? Meaning, does the receiving method expect an XML document that conforms to a specific spec, or is there a single method for all calls that just receives any XML document and returns the appropriate XML document in return?
//message must conform to foo
public XMLDocument PlaceOrder(XMLDocument message)
//message must conform to bar
public XMLDocument UpdateOrder(XMLDocument message)
OR
public XMLDocument PassMessage(XMLDocument message)
Obviously, I'm not an XML guru, but I'm curious about the "agreed upon" method of passing messages.
Jeff...