This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes AJAX - web services calls Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "AJAX - web services calls" Watch "AJAX - web services calls" New topic
Author

AJAX - web services calls

sanker san
Ranch Hand

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

Joined: Nov 08, 2001
Posts: 15357
    
    6
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: http://pascarello.brinkster.net/basicAjaxExample/

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.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AJAX - web services calls
 
Similar Threads
Couple the Sequence to make coarser calls
discarding database roundtrips
Get Data from another server
Pagination & Session Management
Can we have conversational call over asynchronous call