C Gillespie wrote:
Does anyone know if javascript can be used to access web-services?
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.netscape.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_Model.html>
I am not sure whether that idea has been taken on by web services on the
net.
--
Martin Honnen
http://JavaScript.FAQTs.com/