Edit report at https://bugs.php.net/bug.php?id=71984&edit=1
ID: 71984
User updated by: stef at rouschop dot com
Reported by: stef at rouschop dot com
Summary: SOAP-ERROR: Parsing WSDL: Couldn't load from...
-Status: Feedback
+Status: Open
Type: Bug
Package: SOAP related
Operating System: Ubuntu 14.4
PHP Version: 7.0.5
Block user comment: N
Private report: N
New Comment:
Yes, openssl is enabled.
I asked the owner of the webservice to look into his server log. He cannot find an entry of my
server trying to connect. When I do a cURL request to this server it will work correctly and is also
recorded in the serverlog.
On our other server with 7.0.3-5+deb.sury.org~trusty+1. The SOAP runs like it should.
Are you able to reproduce this?
Previous Comments:
------------------------------------------------------------------------
[2016-04-13 07:37:14] ab@php.net
Thanks for the report. Is ext/openssl enabled on the corresponding host (consider "https://...."). I currently don't reproduce the error
otherwise.
Thanks.
------------------------------------------------------------------------
[2016-04-07 16:54:34] stef at rouschop dot com
Description:
------------
I've deployed a new server with php 7.0.5-2+deb.sury.org~trusty+1 (and included php7.0-SOAP)
and I noticed the SOAP script was generating a SOAP-ERROR:
SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://demo.l1nda.nl/api/webservice/?wsdl'
: failed to load external entity "https://demo.l1nda.nl/api/webservice/?wsdl"
in....
After some investigation I noticed that on other servers where 7.0.3-5+deb.sury.org~trusty+1 is
installed there are no errors.
This is the small script I'm using for my tests on the servers to see if it works/fails:
Test script:
---------------
$client = new \SoapClient("https://demo.l1nda.nl/api/webservice/?wsdl",
["trace" => 1,"exceptions" => true,]);
var_dump($client->__getFunctions());
Expected result:
----------------
array:6 [
0 => "sendResponse send(send $send)"
1 => "get_changed_eventsResponse get_changed_events(get_changed_events
$get_changed_events)"
2 => "get_eventsResponse get_events(get_events $get_events)"
3 => "sendResponse send(send $send)"
4 => "get_changed_eventsResponse get_changed_events(get_changed_events
$get_changed_events)"
5 => "get_eventsResponse get_events(get_events $get_events)"
]
Actual result:
--------------
SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://demo.l1nda.nl/api/webservice/?wsdl'
: failed to load external entity "https://demo.l1nda.nl/api/webservice/?wsdl"
in....
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71984&edit=1