Edit report at https://bugs.php.net/bug.php?id=71984&edit=1
ID: 71984
Comment by: ilclaudio at gmail dot com
Reported by: stef at rouschop dot com
Summary: SOAP-ERROR: Parsing WSDL: Couldn't load from...
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:
Hi,
I have the same error:
"class LibXMLError#1 (6) {
public int $level =>
int(1)
public int $code =>
int(1549)
public int $column =>
int(0)
public string $message =>
string(137) "failed to load external entity "...anaddress/awsdl?wsdl"
"
public string $file =>
string(0) ""
public int $line =>
int(0)
}
C:\TestApiSoapWithPhp\testCaricaVersamento.php:79:
SOAP-ERROR: Parsing WSDL: Couldn't load from '...anaddress/awsdl?wsdl' : failed to
load external entity ".../anaddress/awsdl?wsdl"
with this code:
$context_options = array(
'ssl' => array(
'verify_peer' => false,
'verify_host' => false,
'verify_peer_name' => false,
'allow_self_signed' => true,
'crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT,
),
);
$soap_client_options = array(
'user_agent' => $user_agent,
'login' => $username,
'password' => $password,
'authentication' => SOAP_AUTHENTICATION_BASIC,
'exception' => false,
'keep_alive ' => false,
'encoding' => 'UTF-8',
'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP |
SOAP_COMPRESSION_DEFLATE,
'cache_wsdl' => 0,
'trace' => 1,
'local_cert' => $local_cert,
'passphrase' => $passphrase,
'stream_context' => stream_context_create( $context_options ),
'soap_version' => SOAP_1_1,
);
$soap_client = new SoapClient( $wsdl, $soap_client_options );
echo "\n Metodi disponibili:\n" . var_export( $soap_client->__getFunctions(), true );
And it happens only when "local_cert" is specified.
I'm using PHP 8.2.13 on windows 11.
Without specifying local_cert I have the list of the methods.
However I ha to specify the file to call the methods.
The same code is working on a debian with php 7.4.
I can't understand which are the differcences between the two configurations.
Claudio
Previous Comments:
------------------------------------------------------------------------
[2023-11-04 01:22:14] nielsdos@php.net
I can't reproduce this on 8.1+, but given the number of votes there is probably something
wrong...
This could happen when some unrelated code calls libxml_disable_entity_loader(), so if anyone has
this problem it might be worth checking that...
Otherwise, can anyone who can reproduce this try to compile PHP themselves and get a backtrace from
the exception?
------------------------------------------------------------------------
[2023-02-15 15:28:13] ms dot sayyari at gmail dot com
I also have the same problem with PHP 7.4.13 on Ubuntu 20.04.
ext/openssl is enabled
------------------------------------------------------------------------
[2022-05-06 08:46:34] cmb@php.net
Okay, re-opening then.
------------------------------------------------------------------------
[2022-05-05 21:26:56] felipefermin at gmail dot com
This issue persists. PHP version 7.4.12. ext/openssl is enabled.
------------------------------------------------------------------------
[2021-04-04 04:22:08] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=71984
--
Edit this bug report at https://bugs.php.net/bug.php?id=71984&edit=1