You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Afaik that type of serialization isn't supported out of the box by the XmlDataContractSerializer. To enable support, you can mark the the class you want to serialize with DataContract, and the members (including the dictionary) with DataMember. However, I believe that still might fail when the object isn't a simple type like string or int. If that's the case, creating a custom dictionary class that implements IXmlSerializable should do the trick! :)
Lesson 34. Demo - Implementing HATEOAS Support After POSTing)
Issue : change Accept Media type to application/xml
AddXmlDataContractSerializerFormatters middleware fails while serializing generated response for Dictionary<string, object>
In our case when we add links to Dictionary<string, object> for media-type *Accept: application/xml.
here are my dictionary's keys and values
Serialization of this dictionarty response fails for media-type *Accept: application/xml.
The text was updated successfully, but these errors were encountered: