RE: [SOAP] Problems with https vs http on soap request

[email protected] ("Don O'Neil") Tue, 2 Feb 2016 12:15:01 -0800
Newsgroups php.soap
Message-ID <[email protected]>
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=C3=A4ber [mailto:[email protected]] 
Sent: Tuesday, February 02, 2016 11:27 AM
To: Don O'Neil <[email protected]>
Subject: Re: [SOAP] 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=C3=A4ber


----- Original Message -----
From: "Don O'Neil" <[email protected]>
To: [email protected]
Sent: Tuesday, February 2, 2016 1:22:20 PM
Subject: [SOAP] Problems with https vs http on soap request

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

 

<?php

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


$blah =3D $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 =3D> Yes

SSL Version =3D> OpenSSL/1.0.1e

core SSL =3D> supported

extended SSL =3D> supported

openssl

OpenSSL support =3D> enabled

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

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

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

openssl.cafile =3D> no value =3D> no value

openssl.capath =3D> no value =3D> no value

Native OpenSSL support =3D> enabled

 

The error message I'm getting is:

 

[Tue Feb 02 10:08:21.849115 2016] [:error] [pid 30540] [client 24.253.114.1=
92:56070] PHP Fatal error:  Uncaught SoapFault exception: [WSDL]
SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://ws.cdyne.com/ip2geo/i=
p2geo.asmx?wsdl' : failed to load external entity "https://ws.cdyne.com/ip2=
geo/ip2geo.asmx?wsdl"\n in /home/uswing00/domains/uswingnuts.com/public_htm=
l/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 lin=
e
2

 

Any ideas on how to resolve this? I've verified that all the appropriate op=
tions 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 modul=
e.

 

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 s=
oap 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 appreciate=
d. 

 



---
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