From:             mpicker0 at yahoo dot com
Operating system: Red Hat Linux 7.3
PHP version:      5.0.0
PHP Bug Type:     SOAP related
Bug description:  SoapClient doesn't request wsdl through proxy

Description:
------------
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:
---------------
<?php
$client = new SoapClient(
    "http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl";,
    array('proxy_host'    => "mpickering.jax.fnfis.com",
          'proxy_port'    => 8118)
                        );

print($client->getQuote("ibm"));
?>

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
'http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl' 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 10.48.68.121:1369       64.124.140.30.mfnx:http
SYN_SENT

-- 
Edit bug report at http://bugs.php.net/?id=29211&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29211&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29211&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29211&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29211&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29211&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29211&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29211&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29211&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29211&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29211&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29211&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29211&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29211&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29211&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29211&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29211&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29211&r=float

Reply via email to