Hi all, I have an application that submits multiple xml queries to a different application, processes the xml it recieves back and displays relevant information to the user. However sending the xml is causing a big delay. The following line:
myServerXMLHTTP.send (xmlToSend)
takes approximately three seconds every time it is called. When 5 xml requests are sent, the user is left waiting an unacceptable 15 seconds. Is there a faster way to send xml with asp?? My sendXML function is as follows.
function sendXML(xmlToSend)
Set myXMLDoc = CreateObject("MSXML2.DOMDocument.4.0")
Set myServerXMLHTTP = CreateObject("MSXML2.ServerXMLHTTP.4.0")
myServerXMLHTTP.Open "POST", myURL, False
myServerXMLHTTP.setRequestHeader "USER_AGENT", "ABC"
myServerXMLHTTP.setRequestHeader "ContentType", "application/xwww-form-urlencoded"
myServerXMLHTTP.send (xmlToSend)
Set myXMLDoc = myServerXMLHTTP.responseXML
Set myServerXMLHTTP = Nothing
set sendXML = myXMLDoc
Set myXMLDoc = Nothing
end function
I`d appreciate any suggestions, thanks a lot.