Mickymaus: PHP soap

Beitrag lesen

$auth = base64_encode('KHD\user:pass');  
$header = array("Proxy-Authorization: Basic $auth");  
$aContext = array(  
    'http' => array(  
        'proxy' => 'proxy.de:8080',  
        'request_fulluri' => true,  
	   'header' => $header,  
    ),  
);  
$cxContext = stream_context_create($aContext);  
  
$wsdl = file_get_contents('http://search.webofknowledge.com/esti/wokmws/ws/WOKMWSAuthenticate?wsdl',false,$cxContext);  
  
$test = fopen("test.txt","w+");  
fwrite($test,$wsdl);  
fclose($test);  
$auth_client = new SoapClient("test.txt");  
$auth_response = $auth_client->authenticate();

Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in E:\xampp\htdocs\test.php:44 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'http://search.w...', '', 1, 0) #1 E:\xampp\htdocs\test.php(44): SoapClient->__call('authenticate', Array) #2 E:\xampp\htdocs\test.php(44): SoapClient->authenticate() #3 {main} thrown in E:\xampp\htdocs\test.php on line 44