驗證網址forums.asp.net安全性

how to set a Web API REST service to always return XML not JSON | The ASP.NET Forums

Can you tell us how to set a WebApi Rest service such that it will always serialize to XML? We are specifiying the content type at the call site as.... myHttpWebRequest.ContentType = "text/xml; encoding='utf-8'"; ....but it always seems to return JSON reg...

網址安全性掃描由 google 提供