I'm not familiar with Webservice and wanted to know how to make one, without the need to use Soap (to grab data from the bank and consume it in Android Studio).
I'm not familiar with Webservice and wanted to know how to make one, without the need to use Soap (to grab data from the bank and consume it in Android Studio).
Use JSON as a return ... Then on Android you get some help with the library and create the objects using Gson
Simple example in php that returns a JSON array:
$result = $this->con->query("SELECT * FROM usuario");
if ($result->num_rows > 0) {
while ($obj = mysqli_fetch_object($result)) {
$lista[] = $obj;
}
}
return $lista;