Its being long time after my last post, I hope you people missed me. I am writing this tutorial especially for my newbies programming students, who wants to know the basics of Web service as well as some tutorials to kick start with their Projects.
Before starting tutorial I would first like to take you on background tour of web service and the importance of the web service in today's world. As we all know, we are in an era in which everything is a part of cloud service and every thing is connected to each other, where laptops, tablets, PC, mobiles and all the portable devices are the main consumer of Cloud. When we talk about Cloud we mean some unknown place where your data stores and you consume it, and its available everywhere.
For making things more digestible I would like to give you an example of Facebook, we can access it from anywhere, and from any device. The first thing that pops in your mind will be "hey wait, isn't fb is a website?, not a cloud?" , and my answer will be "No its a Cloud". Why cloud? because it provides you service and not 100% users use it as a website, they have applications in their tablets, phones, some people use its chatting app from desktop. Facebook have built in Cloud service that provides service to website, mobiles, tablets, desktop app and so on.
Bored?, Lets Get Started with web service, there are certain things that you must know, web service can be created through any language, platform and there are certain types of services that we use know days 1) RESTful and 2) SOAP, there are more but I don't want to go to much deep.
In the last we have web service languages in which JSON (JavaScript Object Notation) and XML (eXtensible Markup Language) Commonly used for data transferring.
Just remember to go through my Jump Start tutorial for MVC this will help you understanding MVC Architecture and Web API works on MVC.
Now, start your Visual Studio and create yourself a New Project and named it something nice, I named it MvcApiWebApplication.
Before starting tutorial I would first like to take you on background tour of web service and the importance of the web service in today's world. As we all know, we are in an era in which everything is a part of cloud service and every thing is connected to each other, where laptops, tablets, PC, mobiles and all the portable devices are the main consumer of Cloud. When we talk about Cloud we mean some unknown place where your data stores and you consume it, and its available everywhere.
For making things more digestible I would like to give you an example of Facebook, we can access it from anywhere, and from any device. The first thing that pops in your mind will be "hey wait, isn't fb is a website?, not a cloud?" , and my answer will be "No its a Cloud". Why cloud? because it provides you service and not 100% users use it as a website, they have applications in their tablets, phones, some people use its chatting app from desktop. Facebook have built in Cloud service that provides service to website, mobiles, tablets, desktop app and so on.
Bored?, Lets Get Started with web service, there are certain things that you must know, web service can be created through any language, platform and there are certain types of services that we use know days 1) RESTful and 2) SOAP, there are more but I don't want to go to much deep.
In the last we have web service languages in which JSON (JavaScript Object Notation) and XML (eXtensible Markup Language) Commonly used for data transferring.
Just remember to go through my Jump Start tutorial for MVC this will help you understanding MVC Architecture and Web API works on MVC.
Now, start your Visual Studio and create yourself a New Project and named it something nice, I named it MvcApiWebApplication.