javascript implementation of XMLHTTP and SOAP objects?

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

    #1

    javascript implementation of XMLHTTP and SOAP objects?

    I don't know enough about the technology yet to know whether this
    is a ridiculous question-- but is there no cross-browser
    javascript implementation of XMLHTTP and SOAP for use in calling
    web services? It looks as though MSFT expects the client to be
    running Windows and ActiveX and have certain DLLs installed; and
    Mozilla seems to have its own implementation of SOAP. Is it
    possible to implement these protocols in pure client-side
    javascript?
    Thanks!
    Timo
  • Jim Ley

    #2
    Re: javascript implementation of XMLHTTP and SOAP objects?

    On Tue, 25 May 2004 20:44:34 -0400, Timo <Timo@anonymous .biz> wrote:
    [color=blue]
    >I don't know enough about the technology yet to know whether this
    >is a ridiculous question-- but is there no cross-browser
    >javascript implementation of XMLHTTP and SOAP for use in calling
    >web services? It looks as though MSFT expects the client to be
    >running Windows and ActiveX and have certain DLLs installed; and
    >Mozilla seems to have its own implementation of SOAP. Is it
    >possible to implement these protocols in pure client-side
    >javascript?[/color]

    Nope, you need something to perform HTTP - SOAP is a bad idea though
    anyway.

    HTTP objects are provided by safari, IE and mozilla and have identical
    interfaces, but different constructors.

    Jim.
    --
    comp.lang.javas cript FAQ - http://jibbering.com/faq/

    Comment

    • Martin Honnen

      #3
      Re: javascript implementation of XMLHTTP and SOAP objects?



      Jim Ley wrote:

      [color=blue]
      > HTTP objects are provided by safari, IE and mozilla and have identical
      > interfaces, but different constructors.[/color]

      I didn't know about that Safari feature so far and have now Mac here to
      test. Does Safari simply implement the same constructor as Mozilla, i.e.
      XMLHttpRequest, or what is needed for Safari?

      --

      Martin Honnen
      http://JavaScript.FAQTs.com/

      Comment

      • Jim Ley

        #4
        Re: javascript implementation of XMLHTTP and SOAP objects?

        On Wed, 26 May 2004 16:41:08 +0200, Martin Honnen <mahotrash@yaho o.de>
        wrote:
        [color=blue]
        >
        >
        >Jim Ley wrote:
        >
        >[color=green]
        >> HTTP objects are provided by safari, IE and mozilla and have identical
        >> interfaces, but different constructors.[/color]
        >
        >I didn't know about that Safari feature so far and have now Mac here to
        >test. Does Safari simply implement the same constructor as Mozilla, i.e.
        >XMLHttpRequest , or what is needed for Safari?[/color]

        I believe so, I also haven't yet managed to see it in action or test,
        the code in GMail which reportedly works in Safari just has Mozilla
        and IE paths.

        Jim.
        --
        comp.lang.javas cript FAQ - http://jibbering.com/faq/

        Comment

        • Martin Honnen

          #5
          Re: javascript implementation of XMLHTTP and SOAP objects?



          Jim Ley wrote:
          [color=blue]
          > On Wed, 26 May 2004 16:41:08 +0200, Martin Honnen <mahotrash@yaho o.de>
          > wrote:
          >
          >[color=green]
          >>
          >>Jim Ley wrote:
          >>
          >>
          >>[color=darkred]
          >>>HTTP objects are provided by safari, IE and mozilla and have identical
          >>>interfaces , but different constructors.[/color]
          >>
          >>I didn't know about that Safari feature so far and have now Mac here to
          >>test. Does Safari simply implement the same constructor as Mozilla, i.e.
          >>XMLHttpReques t, or what is needed for Safari?[/color]
          >
          >
          > I believe so, I also haven't yet managed to see it in action or test,
          > the code in GMail which reportedly works in Safari just has Mozilla
          > and IE paths.[/color]

          Yes, I have just searched around on Apple's site and the article

          clearly says and shows that since Safari 1.2 XMLHttpRequest is
          implemented in Safari following the Mozilla implementation.

          If only Opera had already done the same but they are probably doing it:



          --

          Martin Honnen
          http://JavaScript.FAQTs.com/

          Comment

          • Peter Hawkes

            #6
            Re: javascript implementation of XMLHTTP and SOAP objects?

            > >I didn't know about that Safari feature so far and have now Mac here to[color=blue][color=green]
            > >test. Does Safari simply implement the same constructor as Mozilla, i.e.
            > >XMLHttpRequest , or what is needed for Safari?[/color]
            >
            > I believe so, I also haven't yet managed to see it in action or test,
            > the code in GMail which reportedly works in Safari just has Mozilla
            > and IE paths.[/color]

            XMLhttp Request works fine with Safari (Mac Mozilla too) using the
            constructor method you detailed in


            [color=blue]
            > Jim.
            > --
            > comp.lang.javas cript FAQ - http://jibbering.com/faq/
            >[/color]


            Comment

            • Peter Hawkes

              #7
              Re: javascript implementation of XMLHTTP and SOAP objects?


              "Martin Honnen" <mahotrash@yaho o.de> wrote in message
              news:40b4b124$1 @olaf.komtel.ne t...[color=blue]
              >
              >
              > Jim Ley wrote:
              >[color=green]
              > > On Wed, 26 May 2004 16:41:08 +0200, Martin Honnen <mahotrash@yaho o.de>
              > > wrote:
              > >
              > >[color=darkred]
              > >>
              > >>Jim Ley wrote:
              > >>
              > >>
              > >>
              > >>>HTTP objects are provided by safari, IE and mozilla and have identical
              > >>>interfaces , but different constructors.
              > >>
              > >>I didn't know about that Safari feature so far and have now Mac here to
              > >>test. Does Safari simply implement the same constructor as Mozilla, i.e.
              > >>XMLHttpReques t, or what is needed for Safari?[/color]
              > >
              > >
              > > I believe so, I also haven't yet managed to see it in action or test,
              > > the code in GMail which reportedly works in Safari just has Mozilla
              > > and IE paths.[/color]
              >
              > Yes, I have just searched around on Apple's site and the article
              > http://developer.apple.com/internet/...mlhttpreq.html
              > clearly says and shows that since Safari 1.2 XMLHttpRequest is
              > implemented in Safari following the Mozilla implementation.
              >
              > If only Opera had already done the same but they are probably doing it:
              >
              >[/color]


              WOW, great news! I use it extensively in my PHP applications and I always
              have to sniff it out and serve up an alternate for Opera and the other non
              supporting browsers.
              [color=blue]
              > Martin Honnen
              > http://JavaScript.FAQTs.com/
              >[/color]


              Comment

              Working...