I have a self-hosted WCF REST application which is designed to accept and return JSON as a Stream with WebMessageBodyStyle.Bare. I am bypassing the DataContractSerializer using WebContentTypeMapper and WebContentFormat.Raw.
It works fine locally via WebHttpBinding, and also works fine when I use WebHttpRelayBinding and Content-Type: text/plain in Fiddler2, but whenever I use Content-Type: application/json I receive the following:
500
TrackingId:e0281df8-12b4-4914-ab87-314956fb0df3, TimeStamp:07/27/2010 12:32:47
Is there any way of getting a WebHttpRelayBinding to accept Content-Type: application/json?