Home / Articles / Programming Languages / Web Services / A Web Services Primer (10/10): Finally Some REST

“Chishiki” is Japanese for “knowledge.” e-chishiki.com aims to bring software developers, information security professionals, IT executives and other IT pros a rich body of knowledge in the form of articles, interviews, tutorials and technical discussions. Our contributors are among the biggest names in the Indian IT industry and include noted authors, educators and practitioners.

Weekly Programming Series - A Web Services Primer

A Web Services Primer (10/10): Finally Some REST

Yashavant Kanetkar and Asang Dani
Yashavant Kanetkar and Asang Dani

Index

Simplicity and elegance rarely go hand-in-hand in most distributed system designs. REST is like a breath of fresh air that restores the soul of distributed programming and removes one of the biggest misconceptions about HTTP – "It's for transport". It makes wonderful use of HTTP as an idiomatic protocol with nouns representing concepts (APIs) and verbs (GET, LIST, POST) representing operations. In this article we will show you how easy it is to write a REST client. This will convince you as to why giants like Google, Yahoo, and Amazon, etc. support REST in their Web Services.

Getting Ready to use a REST Web Service

In this article we will see how to modify the Currency Web Service client application explained in article 2 – "Consume It Your Majesty" to use REST based approach. So as a first step, copy that project to another directory and make following changes:

  1. Delete the Web Reference com.ksetindia.com.ws.currency
  2. Remove the statement
    using CurrencyClient01.com.ksetindia.ws.currency;
    from CurrencyClient.cs.
  3. Add a reference to System.Web component

With that we have removed any references to our SOAP Currency Web Service.

Comments

Log in or create a user account to comment.

On Sale From April 2008

Let Us C
8th Ed.
C programming classic & best seller. 1 million+ copies sold!

Y. Kanetkar

On Sale From April 2008

Introduction to Object Oriented Programming & C++

Y. Kanetkar

On Sale From Fall 2008

Microsoft .NET Framework: Web Application Security

Vijay Mukhi

On Sale From Nolvember 2008

Quest C++ Courseware
12+ hours of instructional audio and animated slides.

Y. Kanetkar Asang Dani

On Sale From November 2008

A Programmer's Guide to Web Application Security

Vijay Mukhi

Latest Forum Posts