Zend Soap客户端错误:无法启用加密

时间:2010-10-01 20:43:09

标签: php zend-framework soap zend-soap

嘿伙计们,我正在使用Zend Soap客户端库来使用web服务,如下所示:

$wsdl = "path_to_wsdl_file";
$client = new Zend_Soap_Client($wsdl);

$client->nfeRecepcaoLote();

我收到以下错误:

Warning (2): SoapClient::__doRequest() [soapclient.--dorequest]: Failed to enable crypto [CORE/vendors/plugins/nfe/vendors/Zend/Soap/Client.php, line 987]

Warning (2):SoapClient::__doRequest() [soapclient.--dorequest]: connect() failed: Unspecified error [CORE/vendors/plugins/nfe/vendors/Zend/Soap/Client.php, line 987

有谁知道它可能是什么? Web服务的主机是:

https://homologacao.nfe.ms.gov.br/homologacao/services/NfeRecepcao

我正在使用PHP 5.2.6和Ubuntu 9.10。

致以最诚挚的问候,

1 个答案:

答案 0 :(得分:0)

看起来是因为您尝试使用自签名证书访问SSL服务。允许您需要授权它。看Zend Soap Client documentation on connection adapters