Hi Subspace!
Here is most of the code, except for some elements I removed for clarity.
I am not mixing the rental model. This is my original code that worked fine on the previous hosting company.
I tried removing FreeThreaded after reading your suggestion and got the previously mentioned error regarding the XSLTemplate
Any ideas would be greatly appreciated.
Dim oXmlsrc, oRootNode, oXslsrc, newXML, re, oXslTmpl, oXslProc
' If you're using an XSLTemplate and XSLProcessor object,
' you have to use the FreeThreaded versions of DOMDocument
Set oXmlsrc=CreateObject("FreeThreadedMSXML2.DOMDocument.4.0")
Call oXmlsrc.setProperty("ServerHTTPRequest", True)
oXmlsrc.async=False
Set oXslsrc=CreateObject("FreeThreadedMSXML2.DOMDocument.4.0")
Call oXslsrc.setProperty("ServerHTTPRequest", True)
oXslsrc.async=False
Set oXslTmpl = Server.CreateObject("MSXML2.XSLTemplate.4.0")
' If I haven't posted the form first, then load my unaltered XML.
' If I'm posting info to resort or edit, then build my XML from that.
'On Error Resume Next 'debugging code
If Request.Form("acctname") = "" Then
Call oXmlsrc.load(sVerifyUrl)
'Response.Write "<!-- " & oXmlSrc.xml & " -->" 'debugging code
newXML=oXmlsrc.xml
Set re=new regexp
re.pattern=" xmlns.+?>"
newXML=re.replace(newXML,">")
Call oXmlsrc.loadxml(newXML)
else
'Build a DOM that looks exactly like the one coming from the web service
'That way XSL can't tell the difference.
'The XML DOM is empty at this stage so we need to load it with the root node
Call oXmlSrc.loadXML("<accountdata/>")
'Set a variable to point to the root node
Set oRootNode = oXmlsrc.documentElement
'Get the values submitted
sName = Request.Form("acctname")
'Create a new <acct_num> element
Set oAcct = oXmlSrc.createElement("acct_num")
'Set the text of the <acct_num> element to the account number value submitted
oAcct.Text = sAcct
'Append the new <acct_num> element as a child of the root node <accountdata>
Call oRootNode.appendChild(oAcct)
'xml is now <accountdata><acct_num>?</acct_num></accountdata>
' TODO: If want, you can remove this line entirely to prevent any
' possible accidentaly release of data into an HTML comment on
' the production page. It's for testing purposes.
'Response.Write "<!-- " & oXmlSrc.xml & " -->"
end if
Call oXslsrc.load("https://www.secured.domain.com/verifyacct.xsl")
Set oXslTmpl.stylesheet = oXslsrc
Set oXslProc = oXslTmpl.createProcessor()
oXslProc.input = oXmlsrc