RE: Problems with https vs http on soap request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I verified that I can indeed get there ok with a wget statement. I get the same correctly expected results from a wget using http or https.

-----Original Message-----
From: Peter Brunnengräber [mailto:pbrunnen@bccglobal.com] 
Sent: Tuesday, February 02, 2016 11:27 AM
To: Don O'Neil <lists@lizardhill.com>
Subject: Re:  Problems with https vs http on soap request

Hi Don,
  This may seem like a simple thing... but can you verify that you are able to connect to the https server Ok from the server running your PHP script?

  I am just wondering if your certificate is failing to check out...  Time skew, Unknown root CA, etc.

-With kind regards,
 Peter Brunnengräber


----- Original Message -----
From: "Don O'Neil" <lists@lizardhill.com>
To: soap@lists.php.net
Sent: Tuesday, February 2, 2016 1:22:20 PM
Subject:  Problems with https vs http on soap request

I'm having issues with a simple soap testing script working;

 

<?php

$client = new SoapClient('https://ws.cdyne.com/ip2geo/ip2geo.asmx?wsdl');

$blah = $client->__getFunctions();

var_dump($blah);

?>

 

This works FINE when the url us just http:// instead of https://.

 

I'm running PHP 5.6.17 on CENTOS 6.6 with soap and SSL is enabled:

# php -i | grep -i ssl

SSL => Yes

SSL Version => OpenSSL/1.0.1e

core SSL => supported

extended SSL => supported

openssl

OpenSSL support => enabled

OpenSSL Library Version => OpenSSL 1.0.1e-fips 11 Feb 2013

OpenSSL Header Version => OpenSSL 1.0.1e-fips 11 Feb 2013

Openssl default config => /etc/pki/tls/openssl.cnf

openssl.cafile => no value => no value

openssl.capath => no value => no value

Native OpenSSL support => enabled

 

The error message I'm getting is:

 

[Tue Feb 02 10:08:21.849115 2016] [:error] [pid 30540] [client 24.253.114.192:56070] PHP Fatal error:  Uncaught SoapFault exception: [WSDL]
SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://ws.cdyne.com/ip2geo/ip2geo.asmx?wsdl' : failed to load external entity "https://ws.cdyne.com/ip2geo/ip2geo.asmx?wsdl"\n in /home/uswing00/domains/uswingnuts.com/public_html/store/test-ssl.php:2\nStac
k trace:\n#0
/home/uswing00/domains/uswingnuts.com/public_html/store/test-ssl.php(2):
SoapClient->SoapClient('https://ws.cdyn...')\n#1 {main}\n  thrown in
/home/uswing00/domains/uswingnuts.com/public_html/store/test-ssl.php on line
2

 

Any ideas on how to resolve this? I've verified that all the appropriate options are defined in the php.ini file to enable soap. The php build itself was part of the distro for DirectAdmin, so it was built with the soap module.

 

I haven't done anything 'special' to configure OpenSSL, not sure if I have to create a cert, or point to my server's public cert, or what to get the soap ssl request to work. Apache already has the certs location defined and it works fine.

 

I've spent several hours googling to no avail. Any help would be appreciated. 

 



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux