如何应用WCF的REST公开一个样式资源(.css文件内容)接口?

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

public interface IResource{

  [OperationContract]

  [WebGet(UriTemplate="/STYLE/{id}",ResponseFormat=WebMessageFormat.Json)]

  string GetStyle(string id);

}

奇怪,怎么这么久没有人回答呢?我终于知道答案了,记录一下,接口定义为Stream GetStyle(string id);

实现如下:

MemoryStream ms = new MemoryStream();

byte[] = data = Encoding.Default.GetBytes(".ch td {...}");

ms.Write(data, 0, data.Length);

ms.Position = 0;

WebOperationContext.Current.OutgoingResponse.ContentType = "text/css";

return ms;