如何使用jQuery检索XML中的数据来调用WCF服务 [英] How can one call a WCF service using jQuery retrieving data in XML

查看:74
本文介绍了如何使用jQuery检索XML中的数据来调用WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



请告诉我如何使用jQuery调用WCF服务并以xml格式检索数据?

Hi,

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

Thanks in advance!

推荐答案

有关CP的这篇文章对您来说是必读的: ^ ].

它显示了如何实现这些可能性:
"
1.使用jQuery调用ASMX Web服务
2.使用jQuery调用WCF服务并以JSON格式检索数据
3.使用jQuery调用WCF服务并以XML格式检索数据
4,使用jQuery调用WCF服务并以JSON格式检索数据(传递多个输入参数)和(使用DataContract获得多个对象作为输出)
5.使用jQuery [GET方法]调用WCF服务并以JSON格式检索数据
6,使用jQuery调用基于REST的WCF服务 7,通过WCF流​​式传输图像并通过HTTP GET动词请求图像
"


本文应该可以帮助您实现目标.

最好的问候,
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,


这篇关于如何使用jQuery检索XML中的数据来调用WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆