0

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.--dorequest]: 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,

Charles
  • 50,943
  • 13
  • 104
  • 142
José Ricardo
  • 1,479
  • 1
  • 14
  • 28

1 Answers1

-1

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.

Johnny Everson
  • 8,343
  • 7
  • 39
  • 75