This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
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: 56
How do I make web service calls from javascript?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    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