Index: typo3/mod/tools/em/class.em_soap.php =================================================================== --- typo3/mod/tools/em/class.em_soap.php (revision 6398) +++ typo3/mod/tools/em/class.em_soap.php (working copy) @@ -113,7 +113,7 @@ $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; @@ -408,6 +408,30 @@ 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); + } + } } -?> \ No newline at end of file +?>