From: sebastian dot habeker at roli dot com Operating system: Windows 2000 PHP version: 5.2.4 PHP Bug Type: SOAP related Bug description: SoapClient causes 505 HTTP Version not supported error message
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 bug report at http://bugs.php.net/?id=43069&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43069&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43069&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43069&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43069&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43069&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43069&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43069&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43069&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43069&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43069&r=support Expected behavior: http://bugs.php.net/fix.php?id=43069&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43069&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43069&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43069&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43069&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43069&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43069&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43069&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43069&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43069&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43069&r=mysqlcfg