473,320 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

MSXML2.ServerXMLHTTP.4.0 Performance Issue

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.
Apr 30 '07 #1
3 5143
iam_clint
1,208 Expert 1GB
Normally the xml requests are decently fast where is the xml trying to connect to? same server? or somewhere else.
I made a website for National Oak Distributers and we use tons of xml requests to view their database and sometimes their server starts running slow and gives our end users a wait, The only thing I could figure out to do was give the end user a please wait.
Apr 30 '07 #2
Normally the xml requests are decently fast where is the xml trying to connect to? same server? or somewhere else.
I made a website for National Oak Distributers and we use tons of xml requests to view their database and sometimes their server starts running slow and gives our end users a wait, The only thing I could figure out to do was give the end user a please wait.
It seems to be slow where it it sending the xml at this line of code,
myServerXMLHTTP.send (xmlToSend).
By just printing out timestamps to a log file I can see the delay. The server it is sending the xml to is very fast and again by logging timestamps in that application I can see it accepts an xml request and sends a response in under half a second.
Apr 30 '07 #3
The problem did turn out to be the application I was sending the XML requests to. It uses CGI scripts writen in perl. I speeded them up by using modperl. This has improved performance dramatically! Thanks iam_clint.
May 2 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Dan Sikorsky | last post by:
Uploading from browser to server using Msxml2.XMLHTTP takes a long time about 15 minutes for a 1.5MB file at 37.2Kbps, although it does get there. Is there anyway to speed things up? here's the...
0
by: P1ayboy | last post by:
Trying to use Dim objXmlHttp = Server.HttpWebRequest("Msxml2.ServerXMLHTTP.4.0") in a vb.net web application on server 2003, but receive the following error. "System.Web.HttpException: Could...
1
by: ehilario | last post by:
Hello everyone, I am trying to access a webservice to post some values via MSXML2.ServerXMLHttp The OS used is win2003 on both machines. When I access the local machine (A) which has the same...
5
by: katrinaVictim | last post by:
Question: I get the eror listed at the bottom of the post. What can I do to make the response of the x1.send a "binary" type? Or, in general, how can I just "make this work"? <%@...
2
by: Michael Christensen | last post by:
Hi How do I send an input-param to my web service with MSXML2.ServerXMLHTTP? Can this be done without the soap-toolkit? Can't find anything about it - looking forward getting some help :-)...
1
by: Raúl Martín | last post by:
I´ve a function in asp that run correctly but If I tried to change it forasp.net in asp: xmlHTTP = CreateObject("Microsoft.XMLHTTP") And I thought to use this sentence for asp.net but the...
2
by: Maris Janis Vasilevskis | last post by:
Hi, Is it possible to force HttpWebRequest to do exactly (not approximately) the same as MSXML2.ServerXMLHTTP does? More details. I port JScript to JScript.NET I have a server (ASP invoking...
4
by: Arnaud | last post by:
Hi, I'm trying to translate an asp application, i have some difficulties with a particular line : --- Set myxml = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0") --- Classical ajax exemples...
8
by: lopi | last post by:
Hello. I'm trying to remotely get a pdf file - http://remoteServer/file.pdf - in order to store it into another server, maybe with Scripting.FileSystemObject However the following code doesn't...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.