Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Microsoft.XMLHTTP vs Msxml2.ServerXMLHTTP.4.0 ?

Reply
Thread Tools

Microsoft.XMLHTTP vs Msxml2.ServerXMLHTTP.4.0 ?

 
 
Arnaud
Guest
Posts: n/a
 
      03-17-2006
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



 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      03-17-2006


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/
 
Reply With Quote
 
 
 
 
Arnaud
Guest
Posts: n/a
 
      03-17-2006
"Martin Honnen" <> a écrit dans le message de news:
441adf4a$0$21665$...
> 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


 
Reply With Quote
 
Martin Honnen
Guest
Posts: n/a
 
      03-17-2006


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/
 
Reply With Quote
 
Arnaud
Guest
Posts: n/a
 
      03-17-2006

"Martin Honnen" <> a écrit dans le message de news:
441ae932$0$7754$...
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57