Exemple SOAP
Ce script client PHP crée une nouvelle instance de la classe soapClient, puis invoque 2 méthodes définies dans le
service Web : l'obtention de la date du serveur et l'appel d'une méthode qui double la valeur d'un nombre.
- La date du serveur est : 2026-11-10T10:56:37 +0000
**** UNE ERREUR S'EST PRODUITE : SoapFault exception: [Client] SOAP-ERROR: Encoding: Violation of encoding rules in /srv/data/web/vhosts/www.weboplanet.com/htdocs/techno_web/webservice/client.php:34
Stack trace:
#0 /srv/data/web/vhosts/www.weboplanet.com/htdocs/techno_web/webservice/client.php(34): SoapClient->__call()
#1 {main}