Skip to content

XmlDataContractSerializer middleware fails for Dictionary<string, object> #7

@Khungersumit

Description

@Khungersumit

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

Key1            value1
someKey1     someValue
key2             value2
someKey2     ICollection<TSource>

Serialization of this dictionarty response fails for media-type *Accept: application/xml.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions