我得到了一个web服务,并希望返回这个“字符串”作为一个裸体字符串,没有额外的WCF序列化,因为它已经序列化。我该怎么做?返回一个裸JSON字符串
[OperationContract]
[FaultContract(typeof(Exception))]
[WebGet(ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
RequestFormat = WebMessageFormat.Json)]
string Get_Json();
谢谢!我有同样的问题,并最终解决它! – 2013-06-14 16:13:47