How to pass arbitrary data in a Message object using WCF [Technical Blog]
Posted: 31 Mar 2009
Updated: 31 Mar 2009
Views: 13,864
Rating: 5.00/5
Votes: 1
Popularity: 0.00
Licence: The Microsoft Public License (Ms-PL)
Bookmarked: 5
Downloaded: 0
I was searching all over the Internet, and yet I could not find any information about this seemingly simple task. Suppose you have an arbitrary string that you would like to return from a WCF (Windows Communication Foundation) service. You can do one of the following on the service contract: