HTTP/1.0 407 Proxy Authentication Required PHP -


i working in restricted network/limited access internet. since have use proxy make web service call.

here php code calling web service , response .

$client = new soapclient("http: //www.xyz.com/abc/wsdls/login.wsdl", array("trace" => 1, "exceptions" => 1, 'proxy_host' => $proxy_host, 'proxy_port' => $proxy_port, 'proxy_login' => $proxy_login, 'proxy_password' => $proxy_password));  

response is

fatal error: uncaught soapfault exception: [wsdl] soap-error: parsing wsdl: couldn't load 'http://www.xyz.com/abc/wsdls/login.wsdl' : failed load external entity

if copy url error message , paste in browser(with same proxy settings) works.

2nd scenario is, if pass values instead of variables giving me diffarant response

$client = new soapclient("http: //www.xyz.com/abc/wsdls/login.wsdl", array("trace" => 1, "exceptions" => 1, 'proxy_host' => "192.168.0.3", 'proxy_port' => 3128, 'proxy_login' => "actualusername", 'proxy_password' => "actualpassword"));  

warning: soapclient::soapclient(http: //www.xyz.com/abc/wsdls/login.wsdl): failed open stream: http request failed! http/1.0 407 proxy authentication required in /var/www/myproj/login.php on line 56

i have passed required proxy parameters still getting error. domain name , ip address both listed @ server/proxy settings of firewall.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

c# - Resource not found error -