VBScriptEngine & MSXMLDOM.Document
-
hi CPIans I am struggling with a WebService Project. I am explaining the issue. I have created a web services which process ASP Pages. Whenever a client connect to my service I am creating a thread for handling its request. In this thread, I am calling VBScript Engine component for execute ASP Page. Here my webservice is used as a gateway. In side my ASPPage I am creating XMLDomDcoument and HTTPRequest Object . I have listed here the Code Processing flow 1. Loading XML Content from Request Object to XMLDOMDocument 2. Opening our DataCenter Server’s ASP Page by MSXML2.XMLHTTP Object 3. Sending the XMLDOMDocument by MSXML2.XMLHTTP object
<% Set objXMLDocument = CreateObject("MSXML2.DOMDocument") dataCenter=dataCenter & Mid(Request.ServerVariables("URL"), InStrRev(Request.ServerVariables("URL"), "/")+1) & "?rt=GWAY" Set objHTTPRequest = CreateObject("MSXML2.XMLHTTP") objXMLDocument.load(Request) objHTTPRequest.open "POST", dataCenter, False objHTTPRequest.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" objHTTPRequest.send objXMLDocument ret = objHTTPRequest.responseText Response.Write ret Set objXMLDocument = Nothing Set objHTTPRequest = Nothing %>
Everything working fine for some time (likely1 hour or 55 minutes ) (it is varying for each server) After that , My Script engine is throwing a Error like “ Failed to Create Object CreateObject("MSXML2.DOMDocument") “ :(( After restarting my webserice, ii working fine and come to same status as mention above While running webservice , every execution of ASP , handles are increase gradually I have question on this issue 1. Whether it is VBScript Engine Issue :zzz: 2. Whether it is MSXML2.DOMDocument Issue :zzz: Thanks in advance g.p.swamy