473,573 Members | 3,124 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Microsoft.XMLHT TP vs Msxml2.ServerXM LHTTP.4.0 ?

Hi,

I'm trying to translate an asp application, i have some difficulties with a
particular line :
---
Set myxml = Server.CreateOb ject("Msxml2.Se rverXMLHTTP.4.0 ")
---

Classical ajax exemples rather use :
[...]
req = new ActiveXObject(" Microsoft.XMLHT TP");

.... But i'm not sure the ActiveXObject is identical to the original :
Set myxml = Server.CreateOb ject("Msxml2.Se rverXMLHTTP.4.0 ")

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

Thanks,
Arnaud

Mar 17 '06 #1
4 17975


Arnaud wrote:

I'm trying to translate an asp application, i have some difficulties with a
particular line :
---
Set myxml = Server.CreateOb ject("Msxml2.Se rverXMLHTTP.4.0 ")
---

Classical ajax exemples rather use :
[...]
req = new ActiveXObject(" Microsoft.XMLHT TP");


What exactly are you trying to do, translate a VBScript ASP sample to a
JScript ASP sample? Then use
var myxml = Server.CreateOb ject("Msxml2.Se rverXMLHTTP.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*******@yaho o.de> a écrit dans le message de news:
44************* **********@news read2.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.CreateOb ject("Msxml2.Se rverXMLHTTP.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.as p>
<http://msdn.microsoft. com/library/default.asp?url =/library/en-us/xmlsdk/html/1aac5bb8-3647-44cf-a1ce-c220ba464509.as p>
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*******@yaho o.de> a écrit dans le message de news:
44************* *********@newsr ead4.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.as p>
<http://msdn.microsoft. com/library/default.asp?url =/library/en-us/xmlsdk/html/1aac5bb8-3647-44cf-a1ce-c220ba464509.as p>
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
17865
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
21727
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
6562
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
8731
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...
13
25137
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 the version of Microsoft's XML parser and that Microsoft.XMLHTTP refers to the latest installed version. This makes me wonder why sites like...
2
4326
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 file in order to change the content displayed on all the websites. I have noticed that when I update the text in the file which is accessed by...
8
21757
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...
14
14149
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 some said to use Microsoft.ServerXMLHTTP instead. However I have tried that as well and it still freezes up the whole thing (i.e. the site just...
3
6249
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 = Server.Createobject("MSXML2.ServerXMLHTTP.4.0") Call xmlHttp.Open("POST", "http://www.webSite.com", false) Call xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")...
0
7777
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7686
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...
0
8200
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...
1
7773
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6411
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...
1
5584
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5289
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...
0
3731
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1038
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...

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.