DCSIMG
Making Cross-Domain Ajax Requests for a Data Service Revisited - Gil Fink's Blog

Gil Fink's Blog

Fink about IT

News

Microsoft MVP

My Facebook Profile My Twitter Profile My Linkedin Profile

Locations of visitors to this page

Creative Commons License

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.
© Copyright 2013 Gil Fink

Hebrew Articles

Index Pages

My OSS Projects

English Articles

Making Cross-Domain Ajax Requests for a Data Service Revisited

Making Cross-Domain Ajax Requests for a Data Service Revisited

A month ago I released the postMaking Cross-Domain Ajax Requests for a Data Service Revisited
Making Cross-Domain Ajax
Requests for a Data Service
.
The post is about a better
solution to the problem.

Problem Revisited

In my previous post, I mentioned the problem of making a cross-domain Ajax
requests to a service that isn’t located in the application domain. I also offered a
solution of creating a cross-domain proxy service that will act as an
intermediary between your application and the data service. A main problem in
that solution was the using a traditional SOAP-based WCF service as an interface
to a data service.

More Elegant Solution

Meanwhile, I found a post written by Tom Laird-McConnell about
creating an ADO.NET data service proxy as workaround for
Silverlight/ADO.NET cross domain issue
which gives a solution to the
cross-domain problem of Silverlight with a chaining of data services.
I tried to impose the same solution with Ajax calls as well and it works
perfectly.

Summary

Lets sum up, I encourage you to read Tom’s post and to use his solution also
with Ajax calls to a cross-domain data services. I uploaded my previous
solution with Tom’s suggested solution. You can download it from here.

DotNetKicks Image

Comments

DotNetKicks.com said:

You've been kicked (a good thing) - Trackback from DotNetKicks.com

# May 19, 2009 1:31 PM

Making Cross-Domain Ajax Requests for a Data Service Revisited … said:

Pingback from  Making Cross-Domain Ajax Requests for a Data Service Revisited …

# May 19, 2009 4:19 PM