1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| $certificat='../../../cert/xxx.pem';
$wsdl='https://xxx.wsdl';
ini_set("soap.wsdl_cache_enabled", 0);
try {
$client = new SoapClient($wsdl,array('trace'=>1,'local_cert'=>$certificat));
$retour= $client -> __call("reponse",array());
echo "<br />Requete SOAP : ".htmlspecialchars($client->__getLastRequest())."<br />";
echo "<br />Reponse SOAP : ".htmlspecialchars($client->__getLastResponse())."<br />";
// Affichage du resultat
print_r($retour);
}
catch (Exception $erreur) {
//TODO Traitement en cas d"exception, pour l"instant on l"affiche tel quelÅ
echo $erreur;
} |
Partager