473,606 Members | 2,381 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MSXML2.ServerXM LHTTP.4.0 Performance Issue

3 New Member
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(xmlToSe nd)

Set myXMLDoc = CreateObject("M SXML2.DOMDocume nt.4.0")

Set myServerXMLHTTP = CreateObject("M SXML2.ServerXML HTTP.4.0")

myServerXMLHTTP .Open "POST", myURL, False

myServerXMLHTTP .setRequestHead er "USER_AGENT ", "ABC"
myServerXMLHTTP .setRequestHead er "ContentTyp e", "applicatio n/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 5195
iam_clint
1,208 Recognized Expert Top Contributor
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
charliefryer
3 New Member
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
charliefryer
3 New Member
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
12448
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 code ... var sFilename = (document.form1.myFileName.value); // create ADO-stream Object var ado_stream = new ActiveXObject("ADODB.Stream"); // create XML document with default header and primary node
0
1581
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 not create an object of type 'Msxml2.ServerXMLHTTP.4.0'." Its driving me nuts and need to solve it by Monday.
1
14644
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 service the call works great. When I access the other machine (B) that is on the same subnet, I get a Status of 500.
5
17869
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"? <%@ Language=VBScript %> <% Response.Buffer = TRUE Response.ContentType = "image/jpg"
2
21755
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 :-) ------------- Function GetLatest() Dim url, xmlhttp, XMLDOM, XMLNode
1
6566
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 server don´t response right. xmlHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
2
8737
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 binary code; code not accessible). I send XML requests to it. If my request is accepted, ServerXMLHTTP returns XML with accept details. If my request is rejected, ServerXMLHTTP returns XML with reject details.
4
17979
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 rather use :
8
21762
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 work properly: ------------ url = "http://remoteServer/file.pdf" set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") xmlhttp.open "GET", url, false xmlhttp.send ""
0
7955
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8440
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8431
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6773
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5466
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3937
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3980
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2448
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1300
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.