Javascript & web-services

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

    Javascript & web-services

    Dear All,

    Does anyone know if javascript can be used to access web-services?

    Thanks

    Colin


  • Laurent Bugnion

    #2
    Re: Javascript & web-services

    Hi,

    C Gillespie wrote:[color=blue]
    > Dear All,
    >
    > Does anyone know if javascript can be used to access web-services?
    >
    > Thanks
    >
    > Colin[/color]

    Yes, it can, but unfortunately, the API is different depending which
    browser you use.

    However, it is possible to do pretty much every thing one needs, for
    example synchronous/asynchronous calls are possible. I wrote a paper
    about that a few months ago, I could send you a copy if you give me your
    email address. Email me privately if you want it (my email address is
    genuine).,

    Greetings,

    Laurent
    --
    Laurent Bugnion, GalaSoft
    Software engineering: http://www.galasoft-LB.ch
    Private/Malaysia: http://mypage.bluewin.ch/lbugnion
    Support children in Calcutta: http://www.calcutta-espoir.ch

    Comment

    • Martin Honnen

      #3
      Re: Javascript & web-services



      C Gillespie wrote:
      [color=blue]
      > Does anyone know if javascript can be used to access web-services?[/color]

      It depends on the browser, IE 5 and later on Win have the web service
      behaviour building on MSXML so that you can make high level API calls
      generated from the WSDL description of the service.
      Documentation is here:
      <http://msdn.microsoft. com/library/default.asp?url =/workshop/author/webservice/webservice_node _entry.asp>

      Mozilla also has support for accessing web services, there are two APIs,
      one low level, one higher level. There was nice documentation on those
      APIs on the Netscape devedge site, unfortunately AOL has pulled the plug
      on that so that you need to use archives:
      <http://web.archive.org/web/20031203040121/devedge.netscap e.com/viewsource/2003/wsdl/01/>

      Note that the usual same origin restrictions apply meaning you can only
      use script to call a service on the server the page with the script has
      been loaded from. Mozilla however has tried to change that by allowing a
      site to grant or deny access:
      <http://lxr.mozilla.org/mozilla/source/extensions/webservices/docs/New_Security_Mo del.html>
      I am not sure whether that idea has been taken on by web services on the
      net.

      --

      Martin Honnen

      Comment

      Working...