Is there any step by step reference how I can build a ASP.net API on webhost (this ASP.Net is a web form application written by me and I upload to an external webhost) so this web API provide data feeding to my another Android apps (written by me as well).
Thanks
Thanks. I will try to credit the ones who helped but most important is we really do sincerely thanks to all who have helped.
Web API exposes simply data in a RESTful way towards the outside world. If you Android code knows how to call a url and parse the data in either xml, json or another format that you plug into both ends then you can communicate with it.
hkbeer
Member
706 Points
1446 Posts
Web API for Android
Jan 19, 2013 07:20 AM|LINK
Is there any step by step reference how I can build a ASP.net API on webhost (this ASP.Net is a web form application written by me and I upload to an external webhost) so this web API provide data feeding to my another Android apps (written by me as well).
Thanks
www.developerfusion.com/tools/convert/csharp-to-vb/
XIII
All-Star
182674 Points
23445 Posts
ASPInsiders
Moderator
MVP
Re: Web API for Android
Jan 19, 2013 08:50 AM|LINK
Hi,
Web API exposes simply data in a RESTful way towards the outside world. If you Android code knows how to call a url and parse the data in either xml, json or another format that you plug into both ends then you can communicate with it.
http://www.google.be/#hl=nl&gs_rn=1&gs_ri=hp&cp=18&gs_id=1y&xhr=t&q=android+call+rest+service&es_nrs=true&pf=p&tbo=d&output=search&sclient=psy-ab&oq=android+call+restu&gs_l=&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.&bvm=bv.41248874,d.d2k&fp=7488c9732fc04a24&biw=1600&bih=775
http://www.google.be/#hl=nl&tbo=d&sclient=psy-ab&q=asp.net+web+api+call+from+android&oq=asp.net+web+api+call+from+android&gs_l=hp.3...12142.17236.2.17476.33.27.0.6.6.0.103.1746.25j2.27.0...0.0...1c.1.F8P4h6Vqiwo&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.&bvm=bv.41248874,d.d2k&fp=7488c9732fc04a24&biw=1600&bih=775
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
hkbeer
Member
706 Points
1446 Posts
Re: Web API for Android
Jan 19, 2013 09:59 AM|LINK
Thanks. I need both way
ie, data from my asp.net website to Android app
Then Android apps when user do sth, save data back to my asp.net site.
What to do ?
Many thanks in advance
www.developerfusion.com/tools/convert/csharp-to-vb/
XIII
All-Star
182674 Points
23445 Posts
ASPInsiders
Moderator
MVP
Re: Web API for Android
Jan 19, 2013 11:25 AM|LINK
Hi,
what exactly is the issue? You create a Web API and expose data in a RESTful way and you call that from your Android device in a RESTful way.
If you don't know either technology stacks I suggest you first take some time to learn what you need and implement that.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
danroth27
Member
174 Points
40 Posts
Microsoft
Re: Web API for Android
Jan 19, 2013 05:57 PM|LINK
In HTTP lingo to get data from your web API to your Android app you would do a GET request.
To save data from your Android app to your web API you would probably do a POST request.
We have lots of Web API samples on this site that can help get you started. Just go to www.asp.net/webapi and click the Samples tab.
Senior Program Manager
ASP.NET