troubleshooting Question

Solution for timeout Error while using MSXML2.ServerXMLHTTP

Avatar of wtipl
wtipl asked on
ASP
7 Comments1 Solution17970 ViewsLast Modified:
I am using MSXML2.ServerXMLHTTP to access a web page which is located on another machine(localwebserver),trying to send XML request  & accept the response

 During the "Send" I get the following error.

"Error Type:
msxml3.dll (0x80072EE2)
The operation timed out
/pmstest/abc.asp, line 100"

The asp code is as follows:

            Dim objXmlHTTP
                                Dim objXmlDOM
            Set objXmlDOM =Server.CreateObject("Microsoft.XMLDOM")
            objXmlDOM.async=false
            objXmlDOM.loadXML(strPostXml)            
            Set objXmlHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
            objXmlHTTP.setOption 1, true
            objXmlHTTP.Open "POST", Session("strLocalWebServerPath") & "/data_pulling.asp", true
            objXmlHTTP.send(strPostXml)                  
            While (objXmlHTTP.readyState<>4)
                       objXmlHTTP.waitForResponse(10000)      
                                Wend

The error is shown on the line containing the code for objXmlHTTP.send(strPostXml).

This error occurs occasionally. after multiple quick attempts.

If objXmlHTTP.Open last parameter is set to False, the error is as follows
error:-Error Type:
msxml3.dll (0x80072EF1)
The operation has been canceled
/pmstest/abc.asp, line 100

Pls help.

Thanks


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros