infong: PHP Soap

Beitrag lesen

Hallo,

ich habe PHP 5.1.2 und PHP Soap installiert.

soap
Soap Client enabled
Soap Server enabled

Directive Local Value Master Value
soap.wsdl_cache_dir /tmp /tmp
soap.wsdl_cache_enabled 1 1
soap.wsdl_cache_ttl 86400 86400

Wenn ich eine entsprechende Seite aufrufe, erhalte ich den Fehler:

FehlerCode: HTTP
Beschreibung: Error Fetching http headers
Sender:
Notice: Undefined property: SoapFault::$faultactor in test.php on line 33

Ich habe gesucht und folgendes dazu gefunden:
http://bugs.php.net/37054

Die Seite funktioniert aber auch nach der Änderung nicht.

<?php
class smmi_service extends SoapClient {

private static $classmap = array( );

public function smmi_service($wsdl = "http://domain.de/test.wsdl", $options = array()) {
foreach(self::$classmap as $key => $value) {
if(!isset($options['classmap'][$key])) {
$options['classmap'][$key] = $value;
}
}
parent::__construct($wsdl, $options);
}

public function test() {
return $this->__soapCall('test', array(), array(
'uri' => 'http://domain.de:8099',
'soapaction' => '',
'user_agent' => 'SOAP/php-version'
)
);
}
}
$client = new smmi_service();

try{
$testRequest = $client->test();
echo $testRequest."-test<br>";
}
catch (SOAPFault $f) {
echo "FehlerCode: ", $f->faultcode, "<br>";
echo "Beschreibung: ", $f->faultstring, "<br>";
echo "Sender: ", $f->faultactor, "<br>";
}
?>

Weiß jemand, wo der Fehler ist?

Vielen Dank für eure Antworten.