Microsoft.XMLHTTP vs Msxml2.ServerXMLHTTP.4.0 ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Arnaud

    #1

    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.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



  • Martin Honnen

    #2
    Re: Microsoft.XMLHT TP vs Msxml2.ServerXM LHTTP.4.0 ?



    Arnaud wrote:

    [color=blue]
    > 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");[/color]

    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/

    Comment

    • Arnaud

      #3
      Re: Microsoft.XMLHT TP vs Msxml2.ServerXM LHTTP.4.0 ?

      "Martin Honnen" <mahotrash@yaho o.de> a écrit dans le message de news:
      441adf4a$0$2166 5$9b4e6d93@news read2.arcor-online.net...[color=blue]
      > 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.[/color]

      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


      Comment

      • Martin Honnen

        #4
        Re: Microsoft.XMLHT TP vs Msxml2.ServerXM LHTTP.4.0 ?



        Arnaud wrote:
        [color=blue]
        > 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.[/color]

        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/

        Comment

        • Arnaud

          #5
          Re: Microsoft.XMLHT TP vs Msxml2.ServerXM LHTTP.4.0 ?


          "Martin Honnen" <mahotrash@yaho o.de> a écrit dans le message de news:
          441ae932$0$7754 $9b4e6d93@newsr ead4.arcor-online.net...[color=blue]
          > 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[/color]

          Because I have tried some ajax code too, so I said myself perhaps someone
          would know the solution.
          [color=blue]
          > 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.[/color]

          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


          Comment

          Working...