{"id":832,"date":"2005-06-16T11:34:00","date_gmt":"2005-06-16T15:34:00","guid":{"rendered":"http:\/\/www.markbaker.ca\/wp\/2005\/06\/16\/what-is-document-oriented\/"},"modified":"2005-06-16T11:34:00","modified_gmt":"2005-06-16T15:34:00","slug":"what-is-document-oriented","status":"publish","type":"post","link":"http:\/\/www.markbaker.ca\/blog\/2005\/06\/what-is-document-oriented\/","title":{"rendered":"What is document oriented?"},"content":{"rendered":"<p>Don Smith (belatedly) wonders\n<a href=\"http:\/\/dev4net.com\/blog\/archive\/2005\/06\/15\/2319.aspx\">what it means to be document oriented<\/a>;<\/p>\n\n<blockquote>\nTo me, document-oriented (also called message-oriented or message-centric) is less about programming models or on-the-wire representations and more about the developer&#8217;s mindset. I recommend all Web service developers try to change the way they think about distributed solutions &#8230; especially if they&#8217;ve come from a DCOM, Remoting, etc. background. When you&#8217;re not thinking in terms of messages, certain inappropriate concepts can seep into your service. For example, object-oriented concepts like inheritence and polymorphism don&#8217;t belong in a service interface. Don&#8217;t get me wrong, there are ways to acheive the benefits these concepts provide, but it&#8217;s done differently. Developers with an RPC mindset also think in terms of object instances which don&#8217;t really apply to the messaging mindset. Lastly, RPC is largely dependent on the request-response exchange pattern. Messages can be one-way, pub-sub, solicit response, or request-response. Okay, one more thing to distinguish these mindsets &#8230; messaging scenarios are better equiped to handle async, store and forward, and queuing scenarios.\n<\/blockquote>\n\n<p>It amazes me that I can agree so emphatically with with what&#8217;s written\nabove, yet also know that Don, like other Web services proponents, is\nmissing the point; if you&#8217;re not doing state transfer, you&#8217;re just putting\nlipstick (XML) on a pig (RPC).  How can you tell the difference?  If there&#8217;s an\n<a href=\"http:\/\/www.w3.org\/Submission\/2004\/SUBM-ws-addressing-20040810\/#_Toc77464325\">operation<\/a>\n<a href=\"http:\/\/www.w3.org\/TR\/2003\/REC-soap12-part2-20030624\/#rpcinvocation\">name<\/a>\nin your &#8220;document&#8221;, then you&#8217;re not document oriented.<\/p>","protected":false},"excerpt":{"rendered":"Don Smith (belatedly) wonders what it means to be document oriented; To me, document-oriented (also called message-oriented or message-centric) is less about programming models or on-the-wire representations and more about the developer&#8217;s mindset. I recommend all Web service developers try to change the way they think about distributed solutions &#8230; especially if they&#8217;ve come from [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,40],"class_list":["post-832","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-soap","tag-xml"],"_links":{"self":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/posts\/832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/comments?post=832"}],"version-history":[{"count":0,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/posts\/832\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/media?parent=832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/categories?post=832"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/tags?post=832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}