{"id":216,"date":"2003-11-17T04:54:00","date_gmt":"2003-11-17T08:54:00","guid":{"rendered":"http:\/\/www.markbaker.ca\/wp\/?p=97"},"modified":"2003-11-17T04:54:00","modified_gmt":"2003-11-17T08:54:00","slug":"documentliteral-web-services-on-the-web","status":"publish","type":"post","link":"http:\/\/www.markbaker.ca\/blog\/2003\/11\/documentliteral-web-services-on-the-web\/","title":{"rendered":"Document\/literal Web services on the Web"},"content":{"rendered":"<p>Until last week, the SOAP document\/literal examples I&#8217;d seen differed\nfrom the rpc\/encoded ones only by the encoding.  Then I spotted\nthis example (in section 5.1 &#8211; sorry, no URI) in the\n<a href=\"http:\/\/www.w3.org\/2002\/ws\/desc\/wsdl20-primer\">WSDL 2.0 Primer<\/a>;<\/p>\n\n<pre>\n&lt;?xml version='1.0' ?&gt;\n&lt;env:Envelope xmlns:env=\"http:\/\/www.w3.org\/2003\/05\/soap-envelope\"&gt;\n &lt;env:Body&gt;\n\t&lt;customerName&gt;Kevin Liu&lt;\/customerName&gt;\n\t&lt;checkInDate&gt;2002-09-01&lt;\/checkInDate&gt;\n\t&lt;checkOutDate&gt;2002-09-10&lt;\/checkOutDate&gt;\n\t&lt;roomType&gt;double&lt;\/roomType&gt;\n\t&lt;comments&gt;the customer will be arriving late in the evening&lt;\/comments&gt;\n &lt;\/env:Body&gt;\n&lt;\/env:Envelope&gt;\n<\/pre>\n\n<p>Ignoring the problem that there&#8217;s not a single child element of env:Body,\nthis is, from a Web architecture POV, quite encouraging; we have a SOAP\nenvelope encapsulating state.  Very RESTful (at least the part of the\narchitecture that is visible in that example).<\/p>\n\n<p>But if you know where (how?) to look, the Web is nearby.  The key is to\nrealize, once you&#8217;re dealing in state, that the obvious next question is,\n&#8220;The state of <em>what<\/em>?&#8221;<\/p>","protected":false},"excerpt":{"rendered":"Until last week, the SOAP document\/literal examples I&#8217;d seen differed from the rpc\/encoded ones only by the encoding. Then I spotted this example (in section 5.1 &#8211; sorry, no URI) in the WSDL 2.0 Primer; &lt;?xml version=&#8217;1.0&#8242; ?&gt; &lt;env:Envelope xmlns:env=&#8221;http:\/\/www.w3.org\/2003\/05\/soap-envelope&#8221;&gt; &lt;env:Body&gt; &lt;customerName&gt;Kevin Liu&lt;\/customerName&gt; &lt;checkInDate&gt;2002-09-01&lt;\/checkInDate&gt; &lt;checkOutDate&gt;2002-09-10&lt;\/checkOutDate&gt; &lt;roomType&gt;double&lt;\/roomType&gt; &lt;comments&gt;the customer will be arriving late in the evening&lt;\/comments&gt; [&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-216","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\/216","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=216"}],"version-history":[{"count":0,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/posts\/216\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/media?parent=216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/categories?post=216"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/tags?post=216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}