In this article I will explain how to consume a WCF / ASMX service using jQuery. The scope of the article is limited to creating & consuming different kind of services using jQuery. I have segregated this article into 7 topics based on the service consumption.
-
Calling ASMX Web service using jQuery
-
Calling WCF service using jQuery and retrieving data in JSON Format
-
Calling WCF service using jQuery and retrieving data in XML Format
-
Calling WCF service using jQuery and retrieving data in JSON Format (pass multiple input parameters) & ( Get multiple objects as output using DataContract)
-
Calling WCF service using jQuery[ Get Method] and retrieving data in JSON Format
-
Calling REST based WCF service using jQuery
-
Streaming an image through WCF and request it through HTTP GET verb..
If you have never heard about jQuery or WCF or JSON, please learn it before dwelling into this article. The scope is limited to service creation and consumption.
I used Conclusion:
Thanks for reading the article, I know that I have not gone into the details of each and every aspect to keep the article shorter. Please download the source code to check the examples yourself, I have validated the example in IE 7 and Firefox 3.5. If you have any suggestions / comments / doubts regarding the article don't hesitate to post it.