Meaningless Drivel is fun!
The moose likes HTML, CSS and JavaScript and the fly likes AJAX - web services calls Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "AJAX - web services calls" Watch "AJAX - web services calls" New topic

AJAX - web services calls

sanker san
Ranch Hand

Joined: Dec 17, 2004
Posts: 56
How do I make web service calls from javascript?
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Right now you can only make Web Service calls with the XMLHttpRequest object if it is sitting on the same domain. The basic example I created real quick today takes an xml document:

You can easily change this to call a web service that returns this document.

If you want to talk to an outside domain, make the request on the server and cache it there. Use that data and pass it to the client.

I agree. Here's the link:
subject: AJAX - web services calls
It's not a secret anymore!