Search code examples
wcf.net-4.0datacontractserializer

XmlSerializer vs DataContractSerializer


I just realized that DataContractSerializer expects nodes in the alphabetical order or the specified order. Is there any way i could make it NOT do it?

TIA


Solution

  • I used IDispatchMessageInspector.AfterReceiveRequest to intercept the message and sort it alphabetically.