[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XMLHTTP Posts and performance

  • To: "Xml-Dev" <xml-dev@l...>
  • Subject: XMLHTTP Posts and performance
  • From: "Karl Stubsjoen" <karl@a...>
  • Date: Thu, 15 Aug 2002 08:17:27 -0700
  • Importance: Normal

loadxml performance
Hello,
 
I have two questions, one regarding the peformance of a serverXMLHttp post and the other refering to the XML being posted.
 
First, the performance issue:
 
I post XML data from one server to another, utilizing XML as a method to transport batches of data.  Server(A) reads in an XML doc, then passes it to Server(B) using the serverXMLHTTP objects and methods of MSXML2.  Server(B) then (requests) the posted XML and does what it does with it.  All works great, except it is very slow....  What is going on here, what is making this bugger go so slow?  So far, I have only tested this script with very simple XML docs, I'm affraid to test it with a large one!
 
 
Second, the XML document:
 
The XML I have constructed is a avery simple (see below).  I generate the XML on Server(A) in code, and then pass it to Server(B).  On Server(B), when I read the XML document, I have to read it from a posted form value because if I perform a true "binary" (request) of the XML document, it screws up my other code which is looking for form variables.  My "Send" method looks like this:
 
xmHttp.send "POST","xml=" & my_xml_doc,FALSE
 
On Server(B), I then read the XML document like this:
 
xm.LoadXML request.form("XML")
 
Okay, so this all works, untill I add the <?xml version="1.0" encoding="UTF-8"?> processing instruction (with and without the encoding, still doesn't work).  The behaviour is strange, after a few tests, Server(B) is not able to receive any XML.
Do you all want to see code?  Visit a site to test it?  This is weird.
 
At this point, my confidence is shaken and I'm not sure what is the correct way to form a POST and a Request for XML data.
 
Thanks for the help.
Karl
 

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.