J'ai un problème. En effet je travaille sur des WS mis à ma disposition par un client. Hors ces WS sont sécurisés (https) et je n'arrive pas à les appeler :
Code : Tout sélectionner
$client = new SoapClient(
'https://192.168.1.81:9443/XXXXXServices-2/services/XXXXService?wsdl',
array('trace'=>true,
'exceptions'=>true, 'login' => 'admin'
, 'password' => 'admin'
, 'local_cert' => 'C:\\client.pem'
, 'passphrase' => 'changeit'
));Code : Tout sélectionner
$aParams = array("zone" => "xxxx",
"xxxx" => "xxxx",
"xxxx" => "xxxx",
"xxxx" => "xxxx",
"xxxx" => "xxxx",
"xxxx" => "xxxx",
"xxxx" => "xxxx");
$client->getXxxFromXxx($aParams);Code : Tout sélectionner
Fatal error: Uncaught SoapFault exception: [soap:Server] zone incorrecte (null) in C:\src\test.php:40
Stack trace:
#0 [internal function]: SoapClient->__call('getXxxFrom...', Array)
#1 C:\src\test.php(40): SoapClient->getXxxFromXxx(Array)
#2 C:\src\test.php(49): Service->getXxxFromXxx(Array)
#3 {main}
thrown in C:\src\test.php on line 40Vous avez une idée ? Merci !