Consuming Cross Domain Services using jQuery

by Admin posted on January 30 2010 05:38

One of the most exciting things for me about taking a position at Syndicated Methods is that I get to play!  Over the past 5 years or so I took a slight detour from building web applications.  During that period I was building SOA applications for financial services   Needless to say, I have been brushing up on a lot of the cool things that have been going on in the world of web since I was on hiatus.  One of the coolest things that I think have happened to the web is with the advancements of libraries on the client.  

Not so long ago if anyone said "That part was coded in JavaScript", you would literally see developers run.  Not that JavaScript is a bad technology to use, but primarily because of cross browser complexity.  Thanks to JQuery this phenomena has been corrected.  

Going back to SOA for a minute.  Something that I have come to realize about software is that no good code lives in a vacuum.  Code needs to be distributed ... enter services.  Traditionally, JavaScript prevented you from making calls cross domain.  If your application needed to call out to a web service in a different domain, it just was not possible without creating kludges (yes, iframes and proxies are kludges).  

When I saw that jQuery created the  jQuery .getJSON method I was ecstatic.  I will let their documentation give the official description at http://api.jquery.com/jQuery.getJSON/, but , in general this method allows you to perform a GET request to a target web resource in another domain.  This allows for complete support of consuming SOA services using the jQuery library.

Happy Coding!

Tags: , ,

Comments

2/3/2010 6:02:53 PM #

trackback

MobilePipes ... allow me to introduce JSON

MobilePipes ... allow me to introduce JSON

Syndicated Methods

Add comment


(Will show your Gravatar icon)

  Country flag

Click to change captcha
biuquote
  • Comment
  • Preview
Loading



Contact Us

We want to hear from you.  Our community is important to us and we want to make sure we give you the contact you want.  Please contact our team if you want to sent us feedback of any kind.  Enjoy reading!

RecentComments

Comment RSS