list2form : gestion des erreurs et des petits fichiers (merci cgi.py…)
[progfou.git] / soap / soap-client.php
CommitLineData
067c9a39
P
1<?php
2# Debian-Depends: php-soap # pour SOAP
3# Debian-Depends: php[45]-curl # pour HTTPS
4include_once("SOAP/Client.php");
5$params = Array("username"=>'test', "password"=>'toto');
6$soapclient = new SOAP_Client("https://example.org/soap");
7$ret = $soapclient->call('crypt6', $params);
8if (PEAR::isError($ret))
9 print("Error: " . $ret->getMessage() . "\n");
10else
11 print("Ok: " . $ret . "\n");
12?>