Insert data from Android app to SQL server database using Web Services
I have an Android code that returns a JSONArray in the form [{"key0":"john","key2":"ann","key1":"joe"}]. I have a method that displays the above names in the list for eg. "john" , "ann" in a CustomListView using checkboxes. I also have a method t开发者_运维百科hat I used to check or tick the values . I now need to insert these checked values in my SQL Server database using a web service . I am working on localhost.
Can any one tell me how to create a web service in .NET using C# to insert data into a SQL Server database ?
Here is my Android code
Here is the link for you : Introduction to Building Windows Communication Foundation Services
I recommend you to build WCF service just go through link you will get idea how to build it.
精彩评论