|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-10-27 16:50 UTC] cboden at gmail dot com
Description:
------------
Soap fails to connect to the WSDL.
The server is an Apache-SSL server running on Linux (Note: Not Apache using mod_ssl). I am using PHP (5.2.0RC7). php5.2-200610260230.tar.bz2 is the build file.
Reproduce code:
---------------
<pre>
<?php
try {
$client = new SoapClient('https://localhost:443/wsdl.php', Array(
'allow_self_signed' => 1,
'verify_peer' => 0,
'trace' => 1,
'exceptions' => 1,
));
} catch (Exception $e) {
die(print_r($e));
}
?>
Actual result:
--------------
Warning: SoapClient::SoapClient() [function.SoapClient-SoapClient]: SSL: fatal protocol error in /client.php on line 9
SoapFault Object
(
[message:protected] => SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://localhost:443/wsdl.php'
[string:private] =>
[code:protected] => 0
[file:protected] => /client.php
[line:protected] => 9
[trace:private] => Array
(
[0] => Array
(
[file] => /client.php
[line] => 9
[function] => SoapClient
[class] => SoapClient
[type] => ->
[args] => Array
(
[0] => https://localhost:443/wsdl.php
[1] => Array
(
[allow_self_signed] => 1
[verify_peer] => 0
[trace] => 1
[exceptions] => 1
)
)
)
)
[faultstring] => SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://localhost:443/wsdl.php'
[faultcode] => WSDL
)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 16:00:01 2025 UTC |
Wez, could you please look into this bug. It is related to openssl streams and I cannot understand what the following code. case SSL_ERROR_SYSCALL: if (ERR_peek_error() == 0) { if (nr_bytes == 0) { if (!is_http_stream_talking_to_iis(stream TSRMLS_CC)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSL: fatal protocol error");I get this bug too,using fsockopen('ssl://...') followed by fgets() I'm using PHP 5.2.1 on Solaris 9 using OpenSSL/0.9.7b. If I call @fgets(...) my application seems to work but it would be better if the bug was fixed properly! The ssl server I'm connecting to is an IIS one.