Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

Please tell me how I can call a WCF service using jQuery and retrieve the data in xml format?

Thanks in advance!
Posted
Updated 21-Feb-11 0:54am
v4
Comments
Dalek Dave 21-Feb-11 4:14am    
Edited for Grammar.

1 solution

This article here on CP is a must read for you: Consuming a WCF / ASMX / REST Service using jQuery[^].

It shows how to achieve each of these possiblities:
"
1.Calling an ASMX Web Service using jQuery
2.Calling a WCF Service using jQuery and retrieving data in JSON format
3.Calling a WCF Service using jQuery and retrieving data in XML format
4.Calling a WCF Service using jQuery and retrieving data in JSON format (pass multiple input parameters) and (get multiple objects as output using a DataContract)
5.Calling a WCF Service using jQuery [GET method] and retrieving data in JSON format
6.Calling a REST based WCF Service using jQuery
7.Streaming an image through WCF and requesting it through the HTTP GET verb
"


This article should help you achieve your goal.

Best Regards,
 
Share this answer
 
Comments
Dylan Morley 21-Feb-11 7:05am    
nice article, bookmarked for future use!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900