Implementation of the SOAP server - server.php
:
<?php
// turn off WSDL caching
ini_set("soap.wsdl_cache_enabled","0");
// model, which uses in web service functions as parameter
name,rank,year,count,gender,percent | |
ANDREA,1,1999,10336,m,3.914617704 | |
FRANCESCO,2,1999,9494,m,3.595721796 | |
ALESSANDRO,3,1999,9000,m,3.408626096 | |
MATTEO,4,1999,8703,m,3.296141435 | |
LUCA,5,1999,7799,m,2.953763881 | |
LORENZO,6,1999,7499,m,2.840143011 | |
MARCO,7,1999,7002,m,2.651911103 | |
DAVIDE,8,1999,6418,m,2.430729143 | |
SIMONE,9,1999,6379,m,2.41595843 |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |