hey there
Once, to have a complete control over the head/body of HTTP messages - I use the Message class. To return some XML, for example, I call
public Message ShowRunResults()
{
// some [OperationContract] implementation
webContext.CreateTextResponse(result.ToString(), "application/xml", Encoding.ASCII);
}
The question is how to return 404 not found or other HTTP codes? thanks a lot