I am developing the android application. which is going to update the content from android to the web(php webservice). Can anyone give me the sample code for my reference.
- 
                    You want to do what? Post data from android to the webservice or update data from the webservice to display in android? – Residuum Feb 05 '10 at 09:08
4 Answers
There are lots of questions already on StackOverflow regarding calling webservices from Android. Try looking at those.
For example:
How to call a SOAP web service on Android
How can i call a web service without using KSOAP2 in Android?
FYI, there should be no difference between a PHP webservice and a webservice written in any other language from the client's (Android's) point of view.
- 
                    @Jcaruso PHP is a programming language, SOAP is a communication protocol. You can create SOAP web services in PHP. – Mark B Jun 20 '13 at 15:00
the simpliest way is to use Sockets. :)
if there are rest service you can use internal apache library - DefaultClient...
 
    
    - 2,200
- 3
- 20
- 32
This guide was useful to me in using Android as a REST client. It shows how to use the Android libraries, without external dependencies, to perform basic GET/POST, etc.
Definitely search around if you need more information. There's plenty of resources on the issue.
 
    
    - 1,006
- 10
- 16
 
     
     
    