http://developer.yahoo.com/javascript/howto-proxy.html
For some cases this approach may be better than web services.