Search code examples
wcfconfigurationserializationdatacontractserializerxmlserializer

Can I swap WCF deserializer from configuration?


I have a problem with WCF deserialization where the client hangs on the response for more than a minute.

I'd like to try to swap different deserializers and see if it affects the behavior.

Can I swap in/out different serializers (are there any others?) from configuration, and if so can I do that with any binding, or is that out of control once the service reference is imported?

Any help appreciated!


Solution

  • Can I swap in/out different serializers (are there any others?) from configuration

    This describes how to use the XmlSerializer and DataContractSerializer on two different endpoints for the same service. Its not exactly swapping them in and out but it might suffice for your testing.