Friday, January 29, 2010

Comparison between web application and web service

http://wiki.answers.com gives a nice and precise description of difference between these twos.

So, here I will mainly focus on similarity that seems to be important to me. The main similarity between these two is apparent when web service allows request through Http GET & POST method along with SOAP protocol. Protocol configuration of .asmx web service is discussed in my previous post.

When, a method of a web service invoked through GET/POST, a URI will be addressed. This URI must point to a method located at server. Then a SOAP packet will be returned in response. Similarly when a page of a web application is requested through GET/POST, page load script is executed and HTML of the page will be returned in response. In case of POST request, an action handler will be executed and this action handler will process the POST data.