I made application in ASP.NET MVC3 and I want to connect application with Android.
So first step is to make Web Service, that will communicate with Android.
But I’m new in this area and I don’t know how to start.
Does anyone have some tutorial for making Web Service for ASP.NET MVC3 application?
Also I need instructions for connecting Android with that Web Service?
I made application in ASP.NET MVC3 and I want to connect application with Android.
Share
You really have two questions here, and unfortunately the Android one is a little too broad to answer quickly. So… let’s tackle your first question.
In MVC it is pretty easy to create a simple web service. Create a controller and return JSON from it:
Now, with the default routing in place you can simply call those methods with the following URL, and the appropriate HTTP Verb.
However, it may be worth mentioning this is far easier to do using ASP.Net WebAPI.