From: gpf at hot dot ee Operating system: Windows Vista PHP version: 5.2.3 PHP Bug Type: SOAP related Bug description: SoapClient cannot connect to server
Description: ------------ I got fopen with URL-s work on Windows Vista. Changing host file makes fopen work with URL-s. Just comment out the line :: 1 But I found another weird thing. Although fopen works now SoapClient still gets the error A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. Same error appears also to error.log. Reproduce code: --------------- $client = new SoapClient('http://127.0.0.1/wcftest/MathService.svc?wsdl'); var_dump($client->__getFunctions()); Expected result: ---------------- It should dump out all methods found from web service called MathService. Actual result: -------------- The following lines in error.log: [Mon Jul 23 20:20:32 2007] [error] [client 192.168.1.103] PHP Warning: SoapClient::SoapClient(http://127.0.0.1/wcftest/MathService.svc?xsd=xsd0) [<a href='function.SoapClient-SoapClient'>function.SoapClient-SoapClient</a>]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.\r\n in C:\\www\\htdocs\\wcf.php on line 6, referer: http://127.0.0.1:8080/ [Mon Jul 23 20:20:32 2007] [error] [client 192.168.1.103] PHP Warning: SoapClient::SoapClient() [<a href='function.SoapClient-SoapClient'>function.SoapClient-SoapClient</a>]: I/O warning : failed to load external entity "http://127.0.0.1/wcftest/MathService.svc?xsd=xsd0" in C:\\www\\htdocs\\wcf.php on line 6, referer: http://127.0.0.1:8080/ [Mon Jul 23 20:20:32 2007] [error] [client 192.168.1.103] PHP Fatal error: SOAP-ERROR: Parsing Schema: can't import schema from 'http://127.0.0.1/wcftest/MathService.svc?xsd=xsd0' in C:\\www\\htdocs\\wcf.php on line 6, referer: http://127.0.0.1:8080/ [Mon Jul 23 20:20:32 2007] [error] [client 192.168.1.103] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\www\\htdocs\\wcf.php on line 11, referer: http://127.0.0.1:8080/ -- Edit bug report at http://bugs.php.net/?id=42081&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42081&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42081&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42081&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42081&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42081&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42081&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42081&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42081&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42081&r=support Expected behavior: http://bugs.php.net/fix.php?id=42081&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42081&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42081&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42081&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42081&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42081&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42081&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42081&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42081&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42081&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42081&r=mysqlcfg