ID: 43069 Updated by: [EMAIL PROTECTED] Reported By: sebastian dot habeker at roli dot com -Status: Open +Status: Verified Bug Type: SOAP related Operating System: Windows 2000 PHP Version: 5.2.6 New Comment:
The problem is in soap_xmlParseFile(): old_allow_url_fopen = PG(allow_url_fopen); PG(allow_url_fopen) = 1; ctxt = xmlCreateFileParserCtxt(filename); PG(allow_url_fopen) = old_allow_url_fopen; The code is trying to take advantage of the php's tcp wrapper functionality around fopen calls so it can use xmlCreateFileParserCtxt() with a URL. Unfortunately, the tcp wrapper functionality only supports HTTP/1.0. This may fixable by using xmlCreateURLParserCtxt() instead of xmlCreateFileParserCtxt(). The documentation says it supports files and URLs (source: http://www.xmlsoft.org/html/libxml-parserInternals.html#xmlCreateURLParserCtxt). I have no endpoint with which to test against this bug. Someone please apply the following patch and test it or email me (hermanradtkePLZNOSPAM at gmail dot com) the URL to an endpoint that only supports HTTP/1.1. Patch: http://www.hermanradtke.com/php-43069-soap-client-http1_1.patch Previous Comments: ------------------------------------------------------------------------ [2008-10-31 06:59:07] umerfarooq dot online at gmail dot com 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. ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/43069 -- Edit this bug report at http://bugs.php.net/?id=43069&edit=1