开发者

Zend Soap Client error: Failed to enable crypto

开发者 https://www.devze.com 2023-01-18 16:06 出处:网络
Hey guys, I\'m using the Zend Soap Client library to consume a webservice, like this: $wsdl = \"path_to_wsdl_file\";

Hey guys, I'm using the Zend Soap Client library to consume a webservice, like this:

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

$client->nfeRecepcaoLote();

And I'm receiving the following errors:

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.--dor开发者_如何学Pythonequest]: connect() failed: Unspecified error [CORE/vendors/plugins/nfe/vendors/Zend/Soap/Client.php, line 987

Does anyone know what it can possibly be? The host of the webservice is this:

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

and I'm using PHP 5.2.6 and Ubuntu 9.10.

Best regards,


Looks like is because you are trying to access a SSL service with a self-signed certificate. To allow that you need to authorize it. Look Zend Soap Client documentation on connection adapters.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号