In my service contract, would it be possible to implement code within the method decorated with OperationContract?
Currently, I have two methods: GetJsonData() and GetDataTableData(). One returns a Stream and the other a DataTable. They're both exactly the same, the only difference is that GetJsonData() takes the datatable and converts it to a Stream. GetJsonData() is
the only one exposed.
My OperationContract for GetJsonData() looks like this and it works correctly:
[OperationContract]
[WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.WrappedRequest,
UriTemplate = "GetJsonData")]
System.IO.Stream GetJsonData();
Would it be possible to add code to this [OperationContract] so that I can call GetDataTableData() and then convert that DataTable into a Stream? That way I can eliminate  ...
Go to the complete details ...