Bug #68855 [Opn->Fbk]: Soap Could not connect to host
| From: | cmb@php.net | Date: | Tue, 21 Sep 2021 12:34:55 +0000 |
| Subject: | Bug #68855 [Opn->Fbk]: Soap Could not connect to host | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-236728@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68855&edit=1
ID: 68855
Updated by: cmb@php.net
Reported by: lampacz at gmail dot com
Summary: Soap Could not connect to host
-Status: Open
+Status: Feedback
Type: Bug
Package: SOAP related
Operating System: Debian wheezy
PHP Version: 5.6.4
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Is this still an issue with any of the actively supported PHP
versions[1]?
[1] <https://www.php.net/supported-versions.php>
Previous Comments:
------------------------------------------------------------------------
[2015-06-10 07:40:59] lampacz at gmail dot com
This is not my case. I'm using https client certificate (required by server). Your case is
ignoring validating https server certificate
------------------------------------------------------------------------
[2015-06-10 06:39:49] seyferseed at mail dot ru
This is my production config for https remote air ticket service, and it is working without any
cert, just with pass phrase.
$soapParams = [
'login' => $this->request['user'],
'password' => $this->request['password'],
'trace' => true,
'connection_timeout' => 10,
'default_socket_timeout' => 10,
"exceptions" => true,
'soap_version' => SOAP_1_1,
'cache_wsdl' => WSDL_CACHE_NONE,
'location' => 'https://link/',
"stream_context" => stream_context_create(
[
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false,
]
]
)
];
------------------------------------------------------------------------
[2015-06-09 08:17:50] lampacz at gmail dot com
http://php.net/manual/en/soapclient.soapclient.php
For HTTPS client certificate authentication use local_cert and passphrase options
Not possible to use without client https certificate. Certificate is without passphrase
------------------------------------------------------------------------
[2015-06-09 08:12:30] seyferseed at mail dot ru
Try to update php to latest 5.6.9 version and perform debian dist-upgrade to latest libs versions.
What does mean parameter 'local_cert' => 'sap.crt'? Try without it.
------------------------------------------------------------------------
[2015-06-09 08:05:18] lampacz at gmail dot com
Of course tried this solution but doesn't work.
$oSC = new SoapClient('sap.wsdl', array(
'local_cert' => 'sap.crt',
'location' => 'https://sap_address:8102/sap_url/1.0',
'user_agent' => 'PHP WS',
'cache_wsdl' => WSDL_CACHE_NONE,
'trace' => true,
'exceptions' => true,
'features' => SOAP_SINGLE_ELEMENT_ARRAYS,
'soap_version' => SOAP_1_1,
'stream_context' => stream_context_create(
array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
)
)
)
));
------------------------------------------------------------------------
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=68855
--
Edit this bug report at https://bugs.php.net/bug.php?id=68855&edit=1