Quelques exemples de code SOAP…
[progfou.git] / soap / soap-client.php
1 <?php
2 # Debian-Depends: php-soap # pour SOAP
3 # Debian-Depends: php[45]-curl # pour HTTPS
4 include_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);
8 if (PEAR::isError($ret))
9 print("Error: " . $ret->getMessage() . "\n");
10 else
11 print("Ok: " . $ret . "\n");
12 ?>