473,804 Members | 4,518 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 18018


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
17894
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
21818
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
6593
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
8760
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.
13
25351
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 <http://developer.apple.com/internet/webcontent/xmlhttpreq.htmlopt to use Msxml2.XMLHTTP, first, and...
2
4337
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 Microsoft.XMLHTTP (testXML.htm in the example below), the updates do not appear for some time on the...
8
21815
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 ""
14
14188
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 keeps loading forever). I tried to do a "on error resume next" clause to catch the error but still...
3
6276
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") Call xmlHttp.send(postData) Response.ContentType = "text/html" 'Need to get two values from a form.
0
9579
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
10577
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
10332
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...
1
10320
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10077
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9150
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...
1
7620
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6853
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();...
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.