你好,
WCF rest service 是基于web http 的数据服务技术。支持json和xml格式的数据传输。
至于返回json数据还是xml数据,这取决于客户端的请求和服务端的设置。建议你只要把服务方法的返回值设置为DataTable即可。
Rest Service 的序列化器会根据条件对dataTable对象序列化然后传到客户端。
谢谢
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.