|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29211 SoapClient doesn't request wsdl through proxy
Submitted: 2004-07-16 15:52 UTC Modified: 2004-11-09 09:49 UTC
Avg. Score:4.8 ± 0.4
Reproduced:5 of 5 (100.0%)
Same Version:4 (80.0%)
Same OS:2 (40.0%)
From: mpicker0 at yahoo dot com Assigned: dmitry (profile)
Status: Closed Package: SOAP related
PHP Version: 5.0.0 OS: Red Hat Linux 7.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: mpicker0 at yahoo dot com
New email:
PHP Version: OS:


 [2004-07-16 15:52 UTC] mpicker0 at yahoo dot com
When creating a SoapClient object in WSDL mode, PHP attempts to download the WSDL directly from the URL specified, even if a proxy is configured in the second argument.  This is verified by looking at netstat on the machine running PHP, and by monitoring the proxy request log.

If the WSDL is downloaded using some other means and placed in an accessible spot (such as the same directory as the script), and referred to that way, the actual SOAP call is successful.  The SOAP call itself _does_ go through the proxy.

Reproduce code:
$client = new SoapClient(
    array('proxy_host'    => "",
          'proxy_port'    => 8118)


Expected result:
The WSDL file listed should be requested through the proxy, then the web service should be called through the proxy.

Actual result:
Output in web browser and PHP error log:
[16-Jul-2004 09:49:09] PHP Fatal error:  Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from '' in /usr/local/apache2/htdocs/soap/client2.php:6
Stack trace:
#0 {main}
  thrown in /usr/local/apache2/htdocs/soap/client2.php on line 6

In addition, netstat run on the PHP machine shows
tcp        0      1 SYN_SENT


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-31 13:27 UTC] julien dot delvat at free dot fr
I get the same error on WinXP 2000 for Google API
 [2004-11-09 09:49 UTC]
Fixed in CVS (PHP_5_0 and HEAD).
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Feb 29 16:01:38 2024 UTC