<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    精彩的人生

    好好工作,好好生活

    BlogJava 首頁 新隨筆 聯系 聚合 管理
      147 Posts :: 0 Stories :: 250 Comments :: 0 Trackbacks

    I am seeing a lot of new web services are implemented using a REST style architecture these days rather than a SOAP one. Lets step back a second and explain what REST is.

    What is a REST Web Service

    The acronym REST stands for Representational State Transfer, this basically means that each unique URL is a representation of some object. You can get the contents of that object using an HTTP GET, to delete it, you then might use a POST, PUT, or DELETE to modify the object (in practice most of the services use a POST for this).

    Who's using REST?

    All of Yahoo's web services use REST, including Flickr, del.icio.us API uses it, pubsub, bloglines, technorati, and both eBay, and Amazon have web services for both REST and SOAP.

    Who's using SOAP?

    Google seams to be consistent in implementing their web services to use SOAP, with the exception of Blogger, which uses XML-RPC. You will find SOAP web services in lots of enterprise software as well.

    REST vs SOAP

    As you may have noticed the companies I mentioned that are using REST api's haven't been around for very long, and their apis came out this year mostly. So REST is definitely the trendy way to create a web service, if creating web services could ever be trendy (lets face it you use soap to wash, and you rest when your tired). The main advantages of REST web services are:

    • Lightweight - not a lot of extra xml markup
    • Human Readable Results
    • Easy to build - no toolkits required

    SOAP also has some advantages:

    • Easy to consume - sometimes
    • Rigid - type checking, adheres to a contract
    • Development tools

    For consuming web services, its sometimes a toss up between which is easier. For instance Google's AdWords web service is really hard to consume (in CF anyways), it uses SOAP headers, and a number of other things that make it kind of difficult. On the converse, Amazon's REST web service can sometimes be tricky to parse because it can be highly nested, and the result schema can vary quite a bit based on what you search for.

    Which ever architecture you choose make sure its easy for developers to access it, and well documented.




    原文:http://www.petefreitag.com/item/431.cfm

    posted on 2006-08-31 17:21 hopeshared 閱讀(1315) 評論(0)  編輯  收藏 所屬分類: Web Service
    主站蜘蛛池模板: 亚洲国产成人私人影院| 亚洲综合av一区二区三区| 99久久免费中文字幕精品| 亚洲人成毛片线播放| 国产无遮挡吃胸膜奶免费看| 成人无码视频97免费| 亚洲一区中文字幕在线观看| heyzo亚洲精品日韩| 免费A级毛片无码A∨免费| 婷婷亚洲综合一区二区| 亚洲一区综合在线播放| 国产精品成人四虎免费视频| 国产午夜精品免费一区二区三区 | 亚洲深深色噜噜狠狠爱网站| 久久免费的精品国产V∧| 精品亚洲福利一区二区| 亚洲综合成人网在线观看| 国产免费卡一卡三卡乱码| 一区二区免费视频| 成人在线免费视频| 亚洲人成网男女大片在线播放| 在线亚洲精品自拍| 日韩在线视频免费看| 亚洲电影免费观看| 巨胸喷奶水www永久免费| 一区二区亚洲精品精华液| 亚洲精品国产成人专区| 亚洲av午夜成人片精品电影| 成年人免费的视频| 久久成人免费播放网站| 一级做a爰片久久免费| 亚洲成aⅴ人片久青草影院按摩| 亚洲高清中文字幕综合网| 亚洲日韩VA无码中文字幕| 好吊妞在线新免费视频| **真实毛片免费观看| 丝袜捆绑调教视频免费区| 黄色免费网址大全| 中文字幕在线日亚洲9| 亚洲精品美女久久久久9999| 亚洲精品你懂的在线观看|