ID:               43069
 Updated by:       [EMAIL PROTECTED]
 Reported By:      sebastian dot habeker at roli dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         SOAP related
 Operating System: Windows 2000
 PHP Version:      5.2.4
 New Comment:

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




Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to