1

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.

Dan McGrath
  • 41,220
  • 11
  • 99
  • 130
  • 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 Answers4

3

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.

Community
  • 1
  • 1
Mark B
  • 183,023
  • 24
  • 297
  • 295
  • @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
2

Hi I made a tutorial about this you can download the sample as well

Part 1 Part 2

Guruparan Giritharan
  • 15,660
  • 4
  • 27
  • 50
0

the simpliest way is to use Sockets. :) if there are rest service you can use internal apache library - DefaultClient...

Dmytro
  • 2,200
  • 3
  • 20
  • 32
0

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.

David Kay
  • 1,006
  • 10
  • 16