Answered by:
I want to send data to android device from my asp.net portal

Question
-
User445637517 posted
hi,
I want to send data to android device from my asp.net portal.How to do that?
Thursday, March 7, 2013 3:28 AM
Answers
-
User1943143334 posted
Hi,
You can expose WCF Service, which you can post data through it!
Get Started -
http://fszlin.dymetis.com/post/2010/05/10/Comsuming-WCF-Services-With-Android.aspx
Hope it helps u...
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, March 7, 2013 10:19 AM -
User-742633084 posted
Hi ngtech,
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
http://www.singingeels.com/Articles/Using_Page_Methods_in_ASPNET_AJAX.aspxOr you can use WCF REST programming model:
#WCF Web HTTP Programming Model Overview
http://msdn.microsoft.com/en-us/library/bb412172.aspx#Create REST service with WCF and Consume using jQuery
http://pranayamr.blogspot.com/2011/03/rest.htmlOr 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
http://www.codeproject.com/Articles/203621/Call-HTTPhandler-from-jQuery-Pass-data-and-retriev#Creating Rest Services in asp.net with httphandler
http://www.dotnetbull.com/2012/08/rest-services-in-net-with-httphandler.htmlAnd 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
http://msdn.microsoft.com/en-us/library/bb387098.aspx- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, March 18, 2013 11:10 PM
All replies
-
User1943143334 posted
Hi,
You can expose WCF Service, which you can post data through it!
Get Started -
http://fszlin.dymetis.com/post/2010/05/10/Comsuming-WCF-Services-With-Android.aspx
Hope it helps u...
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, March 7, 2013 10:19 AM -
User-742633084 posted
Hi ngtech,
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
http://www.singingeels.com/Articles/Using_Page_Methods_in_ASPNET_AJAX.aspxOr you can use WCF REST programming model:
#WCF Web HTTP Programming Model Overview
http://msdn.microsoft.com/en-us/library/bb412172.aspx#Create REST service with WCF and Consume using jQuery
http://pranayamr.blogspot.com/2011/03/rest.htmlOr 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
http://www.codeproject.com/Articles/203621/Call-HTTPhandler-from-jQuery-Pass-data-and-retriev#Creating Rest Services in asp.net with httphandler
http://www.dotnetbull.com/2012/08/rest-services-in-net-with-httphandler.htmlAnd 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
http://msdn.microsoft.com/en-us/library/bb387098.aspx- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, March 18, 2013 11:10 PM