Bug #48244 [Com]: SoapClient doRequest fails when proxy is used
| From: | yozik04 at gmail dot com | Date: | Tue, 17 May 2011 09:25:55 +0000 |
| Subject: | Bug #48244 [Com]: SoapClient doRequest fails when proxy is used | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-160781@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=48244&edit=1
ID: 48244
Comment by: yozik04 at gmail dot com
Reported by: loki_angel at mail dot ru
Summary: SoapClient doRequest fails when proxy is used
Status: Open
Type: Bug
Package: SOAP related
Operating System: Windows 2000
PHP Version: 5.3CVS-2009-05-12 (snap)
Block user comment: N
Private report: N
New Comment:
You can try to override __doRequest method
(http://php.net/manual/en/soapclient.dorequest.php) and use CURL for the
request.
Previous Comments:
------------------------------------------------------------------------
[2009-05-12 10:31:19] loki_angel at mail dot ru
Description:
------------
When a proxy is used with the following code. The proxy is not used.
Reproduce code:
---------------
<?
$connection_array=array( "login" => 'login',
"password" => 'pass',
'trace'=>1,
"exceptions" => 0,
'proxy_host' => "proxy.net",
'proxy_port'=> 5190,
'proxy_login'=> "proxy_login",
'proxy_password' => "proxy_pass");
$client = new SoapClient('http://server.com/class.wsdl',
$connection_array);
$client->__soapCall('method', array('var'));
Expected result:
----------------
SOAP-server response
Actual result:
--------------
<b>Fatal error</b>: Uncaught SoapFault exception: [HTTP] Unauthorized
in V:\home\site\www\class.php:13
Stack trace:
#0 [internal function]: SoapClient->__doRequest('<?xml
version="...', 'http://www.serv...',
'', 1, 0)
#1 V:\home\photoscape.l\www\class.php(13):
SoapClient->__soapCall('method', Array)
#2 {main}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=48244&edit=1