问题如题。应用WebGet属性的ResponseFormat的值只有WebMessageFormat.XML和WebMessageFormat.Json,所以返回内容总是被包在xml节点或花括号{}中,怎么让它只返回样式文件的内容呢?接口定义如下,如何修改?望高手指点!
<
[ServiceContract]
public interface IResource{
[OperationContract]
[WebGet(UriTemplate="/STYLE/{id}",ResponseFormat=WebMessageFormat.Json)]
string GetStyle(string id);
}