Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. VBScriptEngine & MSXMLDOM.Document

VBScriptEngine & MSXMLDOM.Document

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestionwcfsysadmintools
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shadrach_india
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups