OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Categories of Web Service messages: data-oriented vs actio

[ Lists Home | Date Index | Thread Index ]

> I appreciate any clarity you can bring to this topic.  /Roger

You are well on your way to REST enlightenment. 8-)

Read back over the "Generality of HTTP" thread.  HTTP methods provide
all the necessary "action" you'll ever need.

e.g.

GET /my-radio HTTP/1.1
Accept: application/radioml

response;

<radio>
 <volume>5</volume>
 <channel type="fm">102.1</channel>
</speaker>

PUT /my-radio HTTP/1.1
Content-Type: application/radioml
<speaker>
 <volume>9</volume>
 <channel type="am>1040</channel>
</speaker>

POST /my-radio HTTP/1.1
Content-Type: audio/mp3
[mp3 file goes here]

MB
-- 
Mark Baker, Chief Science Officer, Planetfred, Inc.
Ottawa, Ontario, CANADA.      mbaker@planetfred.com
http://www.markbaker.ca   http://www.planetfred.com




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS