0
kicks
Planning for SOA: Returning data in multiple formats
major part of any SOA implementation is the ability to return multiple data formats and while SOAP still plays a major role in SOA, the need for RSS syndication, JSON and plain XML may require you to add new functionality and steer away from traditional WCF RPC calls. With OData enabled services you can expend the flexibility of your system, but, what about a pain old XML read feed? There is no need to use the overhead of WCF Data Services or RIA OData publish points. Here is a simple class I use along with a generic HTTP Handler. You might recognize the pattern from an earlier blog post. This class converts POCO objects to JSON, XML, RSS20 and ATOM10. Since IHttpHandler defines the contract that ASP.NET implements to synchronously process HTTP Web requests, it should show performance gains over WCF Data Services.
Here is the class DataFormatManager