MATLAB: Do I receive a Java error when I connect to the Thomson DataStream within Datafeed Toolbox 1.9 (R2006b)

Datafeed Toolbox

I receive a Java exception when I connect to the Thomson Datastream server using Datafeed Toolbox 1.9 (R2006b). This happens when I execute the following command:
a=datastream('MyUserName','MyPassword','Datastream','<http://172.20.0.58'>)
The error that I obtain is
[Fatal Error] :1:55: White spaces are required between publicId and systemId.
??? Error using ==> datastream.datastream
Error using ==> callSoapService
SOAP Fault: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html dir=ltr><head><style>a:link{font:8pt/11pt verdana; color:FF0000}a:visited{font:8pt/11pt verdana; color:#4e4e4e}</style><META NAME="ROBOTS" CONTENT="NOINDEX"><title>The page cannot be displayed</title><META HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252"></head><script> function Homepage(){<!--// in real bits, urls get returned to our script like this:// res://shdocvw.dll/http_404.htm#<http://www.DocURL.com/bar.htm> //For testing use DocURL = "res://shdocvw.dll/http_404.htm#<https://www.microsoft.com/bar.htm https://www.microsoft.com/bar.htm">DocURL=document.URL;//this is where the http or https will be, as found by searching for :// but skipping the res://protocolIndex=DocURL.indexOf("://",4);//this finds the ending slash for the domain server serverIndex=DocURL.indexOf("/",protocolIndex + 3);//for the href, we need a valid URL to the domain. We search for the # symbol to find the begining //of the true URL, and add 1 to skip it - this is the BeginURL value. We use serverIndex as the end marker.//urlresult=DocURL.substring(protocolIndex - 4,serverIndex);BeginURL=DocURL.indexOf("#",1) + 1;urlresult=DocURL.substring(BeginURL,serverIndex);//for display, we need to skip after http://, and go to the next slashdisplayresult=DocURL.substring(protocolIndex + 3 ,serverIndex);InsertElementAnchor(urlresult, displayresult);}function HtmlEncode(text){ return text.replace(/&/g, '&')<snip>

Best Answer

This error message is generated when the URL used to connect to the DataStream server is incorrect.
In order to avoid this error message, verify that the URL that you are using is correct. Note also that the URL that Thomson offers for MATLAB connections is different than that used by other applications. The URL provided by Thomson for MATLAB connections is: