0
当我运行下面给出的代码时,会生成错误ERROR: Invalid HTTPS client certificate path
。我检查了certificate.pem和test.wsdl的路径是否正确。什么可能是这种错误的原因?SOAP:无效的HTTPS客户端证书路径
$wsdl = 'http://localhost:10088/test/test.wsdl';
$options = array(
'local_cert' => 'http://localhost:10088/test/certificate.pem',
'soap_version' => SOAP_1_1
);
try {
$client = new Zend_Soap_Client($wsdl, $options);
$result = $client->getLastResponse();
print_r($result);
} catch (SoapFault $s) {
die('ERROR: [' . $s->faultcode . '] ' . $s->faultstring);
} catch (Exception $e) {
die('ERROR: ' . $e->getMessage());
}