php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71984 SOAP-ERROR: Parsing WSDL: Couldn't load from...
Submitted: 2016-04-07 16:54 UTC Modified: 2016-04-13 07:45 UTC
Votes:38
Avg. Score:3.9 ± 1.1
Reproduced:31 of 32 (96.9%)
Same Version:6 (19.4%)
Same OS:9 (29.0%)
From: stef at rouschop dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 7.0.5 OS: Ubuntu 14.4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: stef at rouschop dot com
New email:
PHP Version: OS:

 

 [2016-04-07 16:54 UTC] 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....

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-04-13 07:37 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2016-04-13 07:37 UTC] 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-13 07:45 UTC] stef at rouschop dot com
-Status: Feedback +Status: Open
 [2016-04-13 07:45 UTC] stef at rouschop dot com
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?
 [2018-01-11 11:44 UTC] jitesh dot gondaliya at techcronus dot com
Hi i am getting SOAP-ERROR: Parsing WSDL: Couldn't load from 

Please help me for that
 [2018-10-10 08:03 UTC] jan dot zelenka at clickworks dot eu
I experience the same issue on PHP 5.6 on Windows.
What I want to add is that the WSDL provider offers both http and https protocols for linking with the WSDL definition. We've been using http happily all the time. It's https where things go wrong. Hope this helps.
 [2018-10-10 11:18 UTC] jan dot zelenka at clickworks dot eu
Sorry all, after some more digging it turned out to be my mistake: the extension php_openssl was not enabled.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Mar 02 08:01:24 2021 UTC