.net中带有JSON的REST服务 [英] REST service with JSON in .net
本文介绍了.net中带有JSON的REST服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以帮我解决使用.net 2.0创建REST服务的示例吗?
Can someone help me out with example of creating REST service using .net 2.0 which
updates and reads data in JSON format?
推荐答案
您可以只使用WCF并将ResponseFormat
设置为WebMessageFormat.Json
.看看其中的一些链接:
http://weblogs.asp. net/jdanforth/archive/2008/08/23/returning-json-from-restful-interface-with-wcf.aspx [ http://msdn.microsoft.com/en-us/library/ms751514%28v = VS.90%29.aspx [ ^ ]
祝你好运!
You can just use WCF and set theResponseFormat
toWebMessageFormat.Json
. Have a look at some of these links:
http://weblogs.asp.net/jdanforth/archive/2008/08/23/returning-json-from-restful-interface-with-wcf.aspx[^]
Download the WCF samples (also including some for REST)
http://msdn.microsoft.com/en-us/library/ms751514%28v=VS.90%29.aspx[^]
Good luck!
这篇关于.net中带有JSON的REST服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文