Intermittent problem in webspeed - The automation server for

Posted by christian.bryan@capita.co.uk on 15-Jul-2016 09:40

Hi 

We use MSXML 4.0 to perform XSLT/XML transformations in our webspeed application.

This has worked successfully and multiple sites but we are getting the following error intermittmently from the brokers at one particular site.

>>>>>

The automation server for Msxml2.DOMDocument.4.0 is not registered properly.

Please reinstall this server or try registering it again. (5893)

<<<<<<

This does not happen all the time and stopping and starting the broker seems to resolve the issue for a while.

Has anyone seen this before?

This is on a virtual Windows 2012 server with OE 11.3.2

Thanks

All Replies

Posted by tbergman on 15-Jul-2016 11:05

While I don’t have an answer for this particular problem, we used MSXML for many years and found that it became subject to problems after Windows updates and for other mysterious reasons. Would work on some machines, not others etc. Sometimes, the Server versions worked, sometimes not. A big mess.
 
If you can, I’d suggest switching to the .Net equivalent for whatever particular task is needed. For transforms, you probably want the System.Xml.Xsl.XslCompiledTransform class.
 
Tom
 

Posted by oedev on 18-Jul-2016 06:44

Snippet of code using .NET which might be useful;

    DEFINE VARIABLE myXslTransform AS System.Xml.Xsl.XslTransform NO-UNDO.
    DEFINE VARIABLE outputFile AS CHAR NO-UNDO.
    DEFINE VARIABLE inputFile AS CHAR NO-UNDO.

    outputFile = SESSION:TEMP-DIRECTORY + "converted.xml".
    inputFile = SESSION:TEMP-DIRECTORY + "input.xml".

    myXslTransform = NEW System.Xml.Xsl.XslTransform().

    myXslTransform:Load("transformation.xslt").

    myXslTransform:Transform(inputFile, outputFile). 

This thread is closed