|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-02-08 17:28 UTC] bender at digitalbase dot de
Description:
------------
SoapClient does work with https over custom port.
If one version is the OpenSSl.dll (OpenSSL 0.9.8l) from an earlier PHP take it to work. With the current, it does not work.
Test script:
---------------
// does work
$client = new SoapClient("https://localhost:21081/test_13?wsdl");
// works
$client = new SoapClient("https://localhost/test_13?wsdl");
Actual result:
--------------
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://localhost:21081/test_13?wsdl' : Start tag expected, '<' not found in C:\htdocs\wwwroot\test.php:4 Stack trace: #0 C:\htdocs\wwwroot\test.php(4): SoapClient->SoapClient('https://local...') #1 {main} thrown in C:\htdocs\wwwroot\test.php on line 4
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 13:00:01 2025 UTC |
I can't reproduce: D:\Users\Cataphract\Desktop\php-5.3.5-Win32-VC9-x86>php -d extension_dir=ext -d extension=php_soap.dll -d extension=php_openssl.dll -r "$client = new SoapClient ('https://192.168.4.5:21083/test_13.xml'); var_dump($client);" object(SoapClient)#1 (2) { ["_soap_version"]=> int(1) ["sdl"]=> resource(6) of type (Unknown) }C:\Dokumente und Einstellungen\frostm\Eigene Dateien\Downloads>cd php-5.3.5- Win32-VC9-x86 C:\Dokumente und Einstellungen\frostm\Eigene Dateien\Downloads\php-5.3.5-Win32- VC9-x86>php -d extension_dir=ext -d extension=php_soap.dll -d extension=php_openssl.dll -r "$client = new SoapClient('https://test.intranet:21081/service/cm/business/Contract/CapacityCon tract/1.3?wsdl'); var_dump($client);" Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://test.intranet:21081/service/cm/business/Contract/CapacityContract/1.3? wsdl' : Start tag expected, '<' not found in Command line code:1 Stack trace: #0 Command line code(1): SoapClient->SoapClient('https://ecganwt...') #1 {main} thrown in Command line code on line 1 C:\Dokumente und Einstellungen\frostm\Eigene Dateien\Downloads\php-5.3.5-Win32- VC9-x86>cd .. C:\Dokumente und Einstellungen\frostm\Eigene Dateien\Downloads>cd php-5.3.0- Win32-VC9-x86 C:\Dokumente und Einstellungen\frostm\Eigene Dateien\Downloads\php-5.3.0-Win32- VC9-x86>php -d extension_dir=ext -d extension=php_soap.dll -d extension=php_openssl.dll -r "$client = new SoapClient('https://test.intranet:21081/service/cm/business/Contract/CapacityCon tract/1.3?wsdl'); var_dump($client);" object(SoapClient)#1 (2) { ["_soap_version"]=> int(1) ["sdl"]=> resource(9) of type (Unknown) }r308155 from svn has the same error C:\Dokumente und Einstellungen\frostm\Eigene Dateien\Downloads>cd php-5.3-ts- windows-vc9-x86-r308155 C:\Dokumente und Einstellungen\frostm\Eigene Dateien\Downloads\php-5.3-ts- windows-vc9-x86-r308155>php -d extension_dir=ext -d extension=php_soap.dll -d extension=php_openssl.dll -r "$client = new SoapClient('https://test.intranet:21081/service/cm/business/Contract/CapacityCon tract/1.3?wsdl'); var_dump($client);" Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://test.intranet:21081/service/cm/business/Contract/CapacityContract/1.3? wsdl' : Start tag expected, '<' not found in Command line code:1 Stack trace: #0 Command line code(1): SoapClient->SoapClient('https://ecganwt...') #1 {main} thrown in Command line code on line 1