ID: 43069 Comment by: umerfarooq dot online at gmail dot com Reported By: sebastian dot habeker at roli dot com Status: Open Bug Type: SOAP related Operating System: Windows 2000 PHP Version: 5.2.6 New Comment:
I am using Rest Request/ response mechanism for web services and i am also getting this error.Is there any solution to this besides having to upgrade or change the php version. Previous Comments: ------------------------------------------------------------------------ [2008-03-25 20:49:12] nick dot riggan at gmail dot com I am having the same exact problem. I am running MSSQL 2005 also and have set up an endpoint. I can load in the browser without issues but not with the SOAP client in PHP. Has anyone solved this? ------------------------------------------------------------------------ [2008-01-25 10:56:42] rob dot smith at gmx dot de Same problem here. OS: Windows XP PHP: 5.2.6 ------------------------------------------------------------------------ [2007-11-15 11:44:00] sebastian dot habeker at roli dot com I downloaded http://snaps.php.net/win32/php5.2-win32-installer-latest.msi but still got the same problem. Is there anything else to configure, in the php.ini or as an option in the SoapClient constructor? ------------------------------------------------------------------------ [2007-11-12 10:15:13] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi ------------------------------------------------------------------------ [2007-10-22 16:33:43] sebastian dot habeker at roli dot com Description: ------------ I am trying to use PHP as a SOAP client with a MSSQL 2005 SOAP endpoint. I can query the wsdl in my browser without a problem, but in PHP I get the error: Warning: SoapClient::SoapClient(http://myuri?wsdl) [function.SoapClient-SoapClient]: failed to open stream: HTTP request failed! HTTP/1.1 505 HTTP Version not supported in C:\scripts\test.php on line 2 Warning: SoapClient::SoapClient() [function.SoapClient-SoapClient]: I/O warning : failed to load external entity "http://myuri?wsdl" in C:\scripts\test.php on line 2 Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://myuri?wsdl' in C:\scripts\test.php:2 Stack trace: #0 C:\scripts\test.php(2): SoapClient->SoapClient('http://...', Array) #1 {main} thrown in C:\scripts\test.php on line 2 A TCP trace shows the following: GET /uri?wsdl HTTP/1.0 Host: 10.20.30.40 HTTP/1.1 505 HTTP Version not supported Content-Length: 0 Server: Microsoft-SQL/9.0 Microsoft-HTTPAPI/1.0 Date: Mon, 22 Oct 2007 15:44:13 GMT Connection: close Reproduce code: --------------- <? $client = new SoapClient('http://myuri?wsdl'); ?> Expected result: ---------------- It should be able to use HTTP/1.1 instead of HTTP/1.0 for the SOAP client request. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43069&edit=1