I want to create webservice which will do logical operations such read,write,insert,update records from SQL server database and returns the response in json object.
After reading that responses I want update the values in android local SQLite database……
If you want to build it yourself, you can write an HTTP Post Request method in a class. As the request, a post item “request” can carry the value. This can be “read”, “write”, “insert”, “update”, “collect all records”, “delete them all”, .. etc. With other parameter, you can send other details.
You haven’t specified the language you will use for webservice. It probably will be ASP.NET, since you are using SQL Server. So on “onload” request, you can take the details from “Request” attribute and according to value of “request”, you route the webservice to a method. And that method connects to SQL Server, completes the request and returns back to Android.