我得到了一個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