[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Difficluty with PHP 5 SoapClient class and SSL connection

Asked by dmehran in PHP Installation, Web Services Description Language, SOAP

Tags: Soap_Client, SSL, HTTPS, PHP5

Hi,

I am having an issue WITH THE SOAP client that I wrote trying to connect to a web service over a SSL connection. It turned out that the SSL certificate is not installed properly on the server with the web service and I need to some how bypass or ignore it. I came across the following article that demonstrates how to bypass SSL using PEAR library and SOAP package. So, I activated PEAR, installed SOAP package and it worked.

http://www.mobinode.com/2006/03/27/using-pear-soap-package-with-ssl-connection/

Now, if you look at the code in the article there is a method called 'setOpt' that allows one to specify SSL verification modes as follow:

$soapClient->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0);
$soapClient->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 0);

My question is if anyone knows of similar method like 'setOpt' for the SoapClient class in PHP 5 that does the same thing. I am running PHP 5 on our server and I don't want to roll back to PEAR and SOAP package which was really designed for PHP 4.

Thanks
 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625