"aber auch fehlschlug" bedeutet genau?
Das bedeutet das folgender Code:
$auth = base64_encode('KHD\proxyuser:proxypass');
$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('example.com/?wsdl',false,$cxContext);
echo $wsdl;
Dann die gesamte gecatchte wsdl Datei ausgibt und anschließend:
$auth_client = new SoapClient($wsdl, array('user'=>'soapuser', 'password'=>'soappassword'));
$auth_response = $auth_client->authenticate();
Mit der Fehlermeldung "Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from '<?xml version='1.0' encoding='UTF-8'?><wsdl:definitions name="
abbricht.