From my android app, I want to call php web services. At times, I just need some data from php, sometime get data based on some parameter passed. I prefer to use RAW Api like HttpClient. I also plan to use mySql DB.
To call php web services, I got references from http://lukencode.com/2010/04/27/calling-web-services-in-android-using-httpclient/, and http://www.anddev.org/doing_http_post_with_android-t492.html, http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/
I am STUCK at :
For eg: I pass 2 parameters with my url “http://……php?src=SOURCE&dest=DEST
REsult – Directions from SOURCE to DEST (at times result may be an array of strings, items, etc)
- How to do send & receive data back in single request ?
- How to write php for the same ?
- Can the above accomplished using raw aPI or JSon or ksoap is required ? I have read that instead of using Jsoan or Soap, raw is the best approach.
Kindly help me to solve the confusion and proceed ahead wit hthe application.
Any help is highly appreciated.
Thanks
Yes,
alfasin, thru ur post and other sites I got things properly working.