REST in WCF: Varying response content type based on HTTP Request Headers
Damian'susedthesameWCFextensibility pointsIusedtoproducesomeboilerplatethatvariestheresponsecontenttypefromJSONtoXML,basedontheAcceptorContent-Type headeroftheGETrequest. HeextendsWebHttpBehaviortoret