Welcome to AspAdvice Sign in | Join | Help

Alessandro Gallo

.NET & Beyond
Mash-it Up with ASP.NET AJAX: Using a proxy to access remote APIs

I wrote an article about accessing remote services through a proxy represented by a local ASP.NET web service.

The article is live on DotNetSlackers and is part of the AJAX column. By the way, Michael Schwarz is one of the authors of the column, so be sure to bookmark the page!

"By default, it’s not possible to make a “cross-domain” HTTP request to a remote web server using the XMLHttpRequest object, without violating a security policy enforced by browsers. [...]

An approach to implement this technique is to create a local web service that acts as a proxy of the remote data service. In other terms, we use the web methods exposed by the local web service to access the remote service. To shed some light on this mechanism, we are going to build a very simple mashup that uses remote services to display data on a map."

Posted: Thursday, May 3, 2007 8:08 AM by Garbin


Christopher Steen said:

ASP.Net Ajax, Performance and Race Conditions, Oh MY! [Via: Ayende Rahien ] Updated BizTalk Resources...

# May 3, 2007 10:22 PM

Damien Jorgensen - Cardiff said:

Id be interested in seeing how you make a proxy, A reusable one would be nice. At the moment I end up creating a seperate IIS based web app and add it to the project, seems a pretty quick way of doing it

# May 11, 2007 2:30 AM
New Comments to this post are disabled