PEAR has a few quite nice classes dealing with SOAP call, the SOAP_WSDL and SOAP_Client, I found out, are the most easy-to-use ones. However, when I try to use SOAP_WSDL to make a SSL connection, it really sucks. To make a SSL connection, PEAR::SOAP requires the cURL extension, which means a certain curl_options have to be set to for the certification reason. Although, both SOAP_WSDL and SOAP_Client expose their ways to allow users passing the curl_options. In my practice, SOAP_WSDL wont capture the curl options passed to it. :(.Luckly, the SOAP_Client works….Here are some of the comments.
1. To avoid the ‘SSL certificate problem, verify that the CA cert is OK. error:14090086:SSL.routines:SSL3_GET_SERVER_CERTIFICATE:certificate’

2. To avoid the SSL: certificate subject name ‘www.domain1.com’ does not match target host name ‘www.domain2.com’

3. Here are the full sample codes

Start your free trial now.

Get instant access to all our premium content, archives, newsletters, and online community.

Monthly Membership

Yearly Membership

What you get

Full access to all premium content and our full archives

Members'-only newsletters

Preferential access and discounts to all TechNode events

Direct access to the TechNode newsroom

Start your free trial now.

Get instant access to all our premium content, archives, newsletters, and online community.

Monthly Membership

Yearly Membership

Gang Lu

Dr. Gang Lu - Founder of TechNode. He's a Blogger, a Geek, a PhD and a Speaker, with passion in Tech, Internet and R'N'R.