So I have a web service that is configured using a webHttpBinding and a webHttp endpoint behavior. I want WCF to use the XmlSerializer instead of the DataContractSerializer, so I tried putting the XmlSerializerFormat attribute on my service class. When I do this I start getting a 400 response. Everything works when I do not have the XmlSerializerFormat on my service.
How can I make my WCF service that uses a webHttp binding and behavior use the XmlSerializer instead of the DataContractSerializer with minimal code changes?
If you need additional information about my implementation please comment and I will provide details. Thanks!
XmlSerializerrequires a public default constructor to serialize or deserialize a class,DataContractSerializerdoes not. - dbc