Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes HTML, CSS and JavaScript and the fly likes web service may connect without local server? 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 "web service may connect without local server?" Watch "web service may connect without local server?" New topic

web service may connect without local server?

Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
WHEN i RUN AJAX FROM LOCAL WITH INTERNET CONN, WITHOUT LOCAL SERVER (neither remote server), well given a remote absolute url of eg a web service, may connect from a latest browser?
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
What is with the caps? Annoying

It is not possible to connect to another domain using Ajax with all browsers because of the smae domain secuirty policy. Hence why you are probably getting "Access Denied" errors. The easiest solution is making a proxy on your server.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60782

I adjusted the subject to what I think you might have been trying to say. As Eric pointed out, posting in all caps is annoying. Annoying people who could help you does not sound like a sound strategy.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: web service may connect without local server?
Similar Threads
RMI service bind/lookup problem(Very freak!)
JNDI Lookup Problem
Need to connect to DB and get some records
Help needed to call a web service after TAM authentication - (401)Unauthorized