Php SoapClient与ssl

时间:2016-04-10 12:08:33

标签: php oracle ssl soap ssl-certificate

我正在尝试使用php soapclient 来使用此wsdl https://ecbq-test.fin.em2.oraclecloud.com/finArTrxnsCreditMemos/CreditMemoService?wsdl

我在 php.ini

中允许 php_openssl.dll

然后我从浏览器中保存了认证文件并将其添加到我的php代码

旁边
$url="https://ecbq-test.fin.em2.oraclecloud.com/finArTrxnsCreditMemos/CreditMemoService?wsdl";
$params = array (
'local_cert'=>  $local_cert,
'trace' => true,
'exceptions' => true
 );
try
{
    $client = new SoapClient($url,$params );
var_dump($client->test());
}catch (SoapFault $f)
{
var_dump($f);
}

代码不起作用

SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://ecbq-test.fin.em2.oraclecloud.com/finArTrxnsCreditMemos/CreditMemoService?wsdl' : failed to load external entity "https://ecbq-test.fin.em2.oraclecloud.com/finArTrxnsCreditMemos/CreditMemoService?wsdl

任何人都能帮帮我吗?感谢

0 个答案:

没有答案