Project

General

Profile

Bug #21699 ยป 5.3-soap-fix.diff

Administrator Admin, 2009-11-26 11:39

View differences:

typo3/mod/tools/em/class.em_soap.php (working copy)
$this->client = new SOAP_Client($this->options['wsdl'], true);
break;
case 'phpsoap':
$this->client = new SoapClient($options['wsdl'],(array)$options['soapoptions']);
$this->client = new SoapClient($this->getSoapURL($options['wsdl']),(array)$options['soapoptions']);
break;
default:
$this->client = false;
......
return false;
}
/**
* Get WSDL file from TER and store it locally
*
* @param string $url
* @return string URL to a local file
*/
protected function getSoapURL($url) {
$content = t3lib_div::getURL($url);
$this->filename = tempnam(sys_get_temp_dir(), 't3em-');
file_put_contents($this->filename, $content);
return 'file:///' . $this->filename;
}
/**
* Removes temporary WSDL file
*
* @return void
*/
function __destruct() {
if (file_exists($this->filename)) {
unlink($this->filename);
}
}
}
?>
?>
    (1-1/1)