471,316 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,316 software developers and data experts.

Javascript & web-services

Dear All,

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

Thanks

Colin
Jul 23 '05 #1
2 1324
Hi,

C Gillespie wrote:
Dear All,

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

Thanks

Colin


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

Jul 23 '05 #2


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/
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.