soap & proxy server
| From: | Sergiy Kuzmenko | Date: | Mon, 20 Feb 2006 18:34:14 +0000 |
| Subject: | soap & proxy server | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-2139@lists.php.net to get a copy of this message | ||
Hi ,
I am having rouble with initializing SoapClient from befind a firewall
to an external web service with a code like this:
$soapClient = new SoapClient($wsdl,
array(
'proxy_host' => $proxy_host,
'proxy_port' => $proxy_port
)
);
After trying for awhile php ends up with the error: "Warning:
SoapClient::__construct(...): failed to open stream: Connection timed
out" (more errors follow).
The proxy options are correct. I can use the same host:port with other
network tools, such as curl or libwww-perl. It looks like passing
proxy options has no effect whatsoever. Any suggestions?
PHP info: v. 5.1.2 + Apcahe 1.3.23 + RH Linux
Thanks
Sergiy