1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
<?php
ini_set('soap.wsdl_cache_enabled', 0);
$wsdl = "converti.wsdl";
$location = "https:......";
$certsClient = "keys.pem";
$passPhraseClient = "...";
$certsServeur = "cert.pem";
$context = stream_context_create(array("ssl" => array("verify_peer" => true,"cafile" => $certsServeur)));
$client = new SoapClient($wsdl,array("trace" => 1,"soap_version" => SOAP_1_1,"location" => $location,"local_cert" => $certsClient,'passphrase' => $passPhraseClient));
$request= array('....'=>'....',
'......'=>'....',
'......'=>'......',
'.......' =>'.......',
'.......'=>'.....' );
$retour_ws = $client->getconverti($request);
echo '<pre>',print_r($retour_ws, true) , '</pre>';
?> |
Partager