Last post Mar 18, 2013 11:10 PM by Steven Cheng - MSFT
Mar 07, 2013 03:28 AM|ngtech|LINK
I want to send data to android device from my asp.net portal.How to do that?
Mar 07, 2013 10:19 AM|roopeshreddy|LINK
You can expose WCF Service, which you can post data through it!
Get Started -
Hope it helps u...
Mar 18, 2013 11:10 PM|Steven Cheng - MSFT|LINK
Are you going to develop some services which will expose data to android mobile client (access the service via internet connection)? If so, I think building a RESTful service would be quite reasonable. RESTful service use standard HTTP protocol and exchange
data (with client) via XML or JSON or custom format. There are various means you can consider for building restful service.
You can use ASP.NET page method:
#Using Page Methods in ASP.NET AJAX
Or you can use WCF REST programming model:
#WCF Web HTTP Programming Model Overview
#Create REST service with WCF and Consume using jQuery
Or you can even use raw ASP.NET custom HttpHandler to build a REST service:
#Call HTTPhandler from jQuery, Pass data and retrieve in JSON format
#Creating Rest Services in asp.net with httphandler
And for data returned from the service, you can use XML format and build XML document or elements (return to client) via LINQ to XML classes:
#LINQ to XML