> From: "Mike Carter" <mikeatwork@ukonline.co.uk> > To: 'Manuel Vázquez Acosta' <manu@chasqui.cu>, <soap@lists.php.net> > Date: Tue, 13 Jan 2004 08:59:11 -0000 > Subject: RE: Re: Guidelines for building a client to WS over SSL... > > -----Original Message----- >> From: Manuel VM-azquez Acosta [mailto:manu@chasqui.cu] >> Sent: 13 January 2004 01:22 >> To: soap@lists.php.net >> Subject: Re: Guidelines for building a client to WS over SSL... >> >> I should have made myself cleared: I meant what should I do to make >> PEAR::SOAP connect over SSL? > > I use PEAR::SOAP over ssl by simply changing the URL to connect to - use > https:// Also you'll need to set up some curl options, if you're using SSL with certificates. For example: $soapclient = new SOAP_Client("https://somewhere.com/someservice.php"); $soapclient->setOpt('curl', CURLOPT_VERBOSE, 1); $soapclient->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 1); $soapclient->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 1); $soapclient->setOpt('curl', CURLOPT_SSLCERT, "./jls-both.pem"); $soapclient->setOpt('curl', CURLOPT_SSLCERTPASSWD, "jls123"); $soapclient->setOpt('curl', CURLOPT_CAINFO, "./cacert.pem"); Jonathan Schilling -- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php