I have a simple Java client application (Android app). I have to write a PHP server application that receives a request from a Java client application to write some data to a MySQL database or read some data from a MySQL database. It should respond with a status message (Write Error / Success) or the requested data, respectively.
How can I get a Java client to send a request and receive a response from a PHP program, and how will a PHP program receive a request and send a response? I googled about SOAP and REST architectures, but are looking for a simple tutorial that will allow me to implement this simple program.
Thanks.
java android php client-server
user245120
source share