473,405 Members | 2,262 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,405 software developers and data experts.

Microsoft.XMLHTTP vs Msxml2.ServerXMLHTTP.4.0 ?

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 :
[...]
req = new ActiveXObject("Microsoft.XMLHTTP");

.... But i'm not sure the ActiveXObject is identical to the original :
Set myxml = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0")

I'm not an asp expert, can you give me some tips on that question ?

Thanks,
Arnaud

Mar 17 '06 #1
4 17953


Arnaud wrote:

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 :
[...]
req = new ActiveXObject("Microsoft.XMLHTTP");


What exactly are you trying to do, translate a VBScript ASP sample to a
JScript ASP sample? Then use
var myxml = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0");
That will use the server version of the XMLHTTP object of MSXML 4 which
means MSXML 4 needs to be installed on the server where you want to run
the JScript ASP page.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Mar 17 '06 #2
"Martin Honnen" <ma*******@yahoo.de> a écrit dans le message de news:
44***********************@newsread2.arcor-online.net...
What exactly are you trying to do, translate a VBScript ASP sample to a
JScript ASP sample? Then use
var myxml = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0");
That will use the server version of the XMLHTTP object of MSXML 4 which
means MSXML 4 needs to be installed on the server where you want to run
the JScript ASP page.


Hi,
Actually I'm trying to translate it into php so i won't have any msxml4
installed on the server.
That's why I tried the ajax/client approach : to avoid dealing with a server
object.
Have I a chance to see it works one day ? :)

Arnaud
Mar 17 '06 #3


Arnaud wrote:
Actually I'm trying to translate it into php so i won't have any msxml4
installed on the server.
That's why I tried the ajax/client approach : to avoid dealing with a server
object.


I am not sure I really understand why you are asking in a JavaScript
group if you want to convert server side VBScript/ASP to PHP but as for
those objects, they have many common properties and methods but there
are some differences. Documentation is here:
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/7924f6be-c035-411f-acd2-79de7a711b38.asp>
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/1aac5bb8-3647-44cf-a1ce-c220ba464509.asp>
So ServerXMLHTTP has methods like setTimeouts, waitForResponse that the
XMLHTTP does not have.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Mar 17 '06 #4

"Martin Honnen" <ma*******@yahoo.de> a écrit dans le message de news:
44**********************@newsread4.arcor-online.net...
I am not sure I really understand why you are asking in a JavaScript group
if you want to convert server side VBScript/ASP to PHP
Because I have tried some ajax code too, so I said myself perhaps someone
would know the solution.
but as for those objects, they have many common properties and methods but
there are some differences. Documentation is here:
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/7924f6be-c035-411f-acd2-79de7a711b38.asp>
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/1aac5bb8-3647-44cf-a1ce-c220ba464509.asp>
So ServerXMLHTTP has methods like setTimeouts, waitForResponse that the
XMLHTTP does not have.


Thanks, I'm going to study your links, I've tried the msdn documentation on
some asp keywords but it's not so easy to read where you're not used to ms
world.

bye
arnaud
Mar 17 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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...
13
by: yawnmoth | last post by:
<http://www.quirksmode.org/book/printable/xmlhttp.txtshows two alternatives to Microsoft.XMLHTTP - Msxml2.XMLHTTP and Msxml3.XMLHTTP. If my understanding is correct, the different numbers refer to...
2
by: Skyblue | last post by:
I use Microsoft.XMLHTTP to access htm or asp pages on a central web site from other satellite sites. In this way, the same content can be displayed on a dozen websites and I only need to update one...
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...
14
by: =?Utf-8?B?VmFuZXNzYQ==?= | last post by:
I've been searching everywhere online to find an alternative method besides using Microsoft.XMLHTTP (as it freezes the server up alot!!) but with no luck at all. I am using server side ASP, and...
3
by: dfordinal | last post by:
I am calling a remote web server and awaiting data that is being passed back to my process in a form variable. postData = "fname=John" Set xmlHttp =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.