Upgrade XAMPP, Problem with SOAP/WSDL

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Upgrade XAMPP, Problem with SOAP/WSDL

Postby lapachon » 07. November 2018 09:27

Hello!

I spend days looking for this mistake. I've upgraded to the latest version of XAMPP and can no longer run my SOAP/WSDL queries. I always get the following error message:

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://XXX.XXX.XXX.XXX:XXX/ca-server/webservices/content/linear-content?wsdl' : failed to load external entity "https://XXX.XXX.XXX.XXX:XXX/ca-server/webservices/content/linear-content?wsdl" in /var/www/html/soap_test.php:6 Stack trace: #0 /var/www/html/soap_test.php(6): SoapClient->SoapClient('https://192.168...', Array) #1 {main} thrown in /var/www/html/soap_test.php on line 6

This is the Code:

<?php

$opts = array(
'http'=>array(
'user_agent' => 'PHPSoapClient'
)
);

$context = stream_context_create($opts);
$client = new SoapClient('https://XXX.XXX.XXX.XXX:XXX/ca-server/webservices/content/linear-content?wsdl',
array('stream_context' => $context,
'cache_wsdl' => WSDL_CACHE_NONE,
'login' => "XXXXXX",
'password' => "XXXXXX"
));

$response = $client->ListLinearContent();
print_r($response);
?>

Apache Error Log:
[Wed Nov 07 09:04:53.809882 2018] [ssl:warn] [pid 27328:tid 672] AH01909: anl04661:443:0 server certificate does NOT include an ID which matches the server name
[Wed Nov 07 09:04:53.879479 2018] [core:warn] [pid 27328:tid 672] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Nov 07 09:04:53.882482 2018] [ssl:warn] [pid 27328:tid 672] AH01909: anl04661:443:0 server certificate does NOT include an ID which matches the server name
[Wed Nov 07 09:04:53.908509 2018] [mpm_winnt:notice] [pid 27328:tid 672] AH00455: Apache/2.4.34 (Win32) OpenSSL/1.1.0i PHP/7.2.10 configured -- resuming normal operations
[Wed Nov 07 09:04:53.908509 2018] [mpm_winnt:notice] [pid 27328:tid 672] AH00456: Apache Lounge VC15 Server built: Aug 15 2018 11:10:17
[Wed Nov 07 09:04:53.908509 2018] [core:notice] [pid 27328:tid 672] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Nov 07 09:04:53.910010 2018] [mpm_winnt:notice] [pid 27328:tid 672] AH00418: Parent: Created child process 31088
[Wed Nov 07 09:04:54.160601 2018] [ssl:warn] [pid 31088:tid 712] AH01909: anl04661:443:0 server certificate does NOT include an ID which matches the server name
[Wed Nov 07 09:04:54.229166 2018] [ssl:warn] [pid 31088:tid 712] AH01909: anl04661:443:0 server certificate does NOT include an ID which matches the server name
[Wed Nov 07 09:04:54.260694 2018] [mpm_winnt:notice] [pid 31088:tid 712] AH00354: Child: Starting 150 worker threads.
[Wed Nov 07 09:05:06.761087 2018] [php7:error] [pid 31088:tid 1932] [client 127.0.0.1:56647] PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://XXX.XXX.XXX.XXX:XXX/ca-server/webservices/content/linear-content?wsdl' : failed to load external entity "https://XXX.XXX.XXX.XXX:XXX/ca-server/webservices/content/linear-content?wsdl"\n in C:\\xampp\\htdocs\\soap_test.php:17\nStack trace:\n#0 C:\\xampp\\htdocs\\soap_test.php(17): SoapClient->SoapClient('https://192.168...', Array)\n#1 {main}\n thrown in C:\\xampp\\htdocs\\soap_test.php on line 17, referer: http://localhost/
[Wed Nov 07 09:08:45.793849 2018] [php7:error] [pid 31088:tid 1932] [client 127.0.0.1:56745] PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://XXX.XXX.XXX.XXX:XXX/ca-server/webservices/content/linear-content?wsdl' : failed to load external entity "http://XXX.XXX.XXX.XXX:XXX/ca-server/webservices/content/linear-content?wsdl"\n in C:\\xampp\\htdocs\\soap_test.php:17\nStack trace:\n#0 C:\\xampp\\htdocs\\soap_test.php(17): SoapClient->SoapClient('http://192.168....', Array)\n#1 {main}\n thrown in C:\\xampp\\htdocs\\soap_test.php on line 17, referer: http://localhost/

OPENSSL is enabled.

Does somebody has any idea?

Thanks!
lapachon
 
Posts: 2
Joined: 07. November 2018 09:20
XAMPP version: v3.2.2
Operating System: Windows 10 x64

Re: Upgrade XAMPP, Problem with SOAP/WSDL

Postby lapachon » 07. November 2018 14:17

I found the solution, thanks!
lapachon
 
Posts: 2
Joined: 07. November 2018 09:20
XAMPP version: v3.2.2
Operating System: Windows 10 x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 33 guests