Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 17, 2012 05:29 PM by marcind
Member
35 Points
57 Posts
Feb 17, 2012 05:04 PM|LINK
Hi,
ASP.NET WebAPI seems to use the XmlSerializer. Is there a way, to use the DataContractSerializer? Could come in handy when the same DTO has to be used with both, WCF and WebAPI.
Wishes,
Manfred
Contributor
3344 Points
609 Posts
Microsoft
Feb 17, 2012 05:29 PM|LINK
There's a UseDataContractSerializer property on XmlMediaTypeFormatter.
manfred.stey...
Member
35 Points
57 Posts
DataContractSerializer vs. XmlSerializer
Feb 17, 2012 05:04 PM|LINK
Hi,
ASP.NET WebAPI seems to use the XmlSerializer. Is there a way, to use the DataContractSerializer? Could come in handy when the same DTO has to be used with both, WCF and WebAPI.
Wishes,
Manfred
marcind
Contributor
3344 Points
609 Posts
Microsoft
Re: DataContractSerializer vs. XmlSerializer
Feb 17, 2012 05:29 PM|LINK
There's a UseDataContractSerializer property on XmlMediaTypeFormatter.
ASP.NET Team
@marcind
Blog