I am trying to post a query to a webform from an android app. What I want to do is send a serial number and search a database but do not want to open the form within the app.
I am using app inventor and the web componant (if anyone is familiar with it).
You can try to implement the POST & retrieval of the data from the asp.net webform to Android application via OData WCF Services.
If you have access to the database from which you want to retrieve the data , that's great. You can easily achieve it via ADO.NET entity framework & create a WCF service then retrieve the service via GET/POST to your android native application.
tribblehunte...
0 Points
1 Post
Posting to asp webform from android app
Dec 31, 2011 12:00 PM|LINK
Hi. New to asp so please be gentle.
I am trying to post a query to a webform from an android app. What I want to do is send a serial number and search a database but do not want to open the form within the app.
I am using app inventor and the web componant (if anyone is familiar with it).
here is the form i am trying to get to activate
http://vppneuapps.volvo.com/ww/PIE/PIE.aspx?lang=en-GB
Any advice much appreciated
Brian
tehremo
Star
10540 Points
1704 Posts
Re: Posting to asp webform from android app
Dec 31, 2011 01:26 PM|LINK
You can POST with the WebRequest object from the codebehind:
http://msdn.microsoft.com/en-us/library/debx8sh9.aspx
Anindita.Bas...
Contributor
2448 Points
416 Posts
Re: Posting to asp webform from android app
Jan 01, 2012 06:18 AM|LINK
You can try to implement the POST & retrieval of the data from the asp.net webform to Android application via OData WCF Services.
If you have access to the database from which you want to retrieve the data , that's great. You can easily achieve it via ADO.NET entity framework & create a WCF service then retrieve the service via GET/POST to your android native application.
A more about OData WCF Services: http://odata.org
http://blogs.msdn.com/b/astoriateam/archive/2011/10/14/introducing-the-odata-library.aspx
http://www.codeproject.com/KB/webservices/WCFDataServices.aspx
Consuming SQL Server Data / OData WCF Services in Android-Java Application:
http://anindita9.wordpress.com/2011/12/29/consuming-odata-wcf-rest-service-from-android-client-device/
Thanks,
Anindita
http://anindita9.wordpress.com