From 2dfeab9ec6a4cb07fb49b72bd6d88eeaa57ab6d5 Mon Sep 17 00:00:00 2001 From: afifi-ins <89879907+afifi-ins@users.noreply.github.com> Date: Fri, 15 Oct 2021 19:21:18 +0200 Subject: [PATCH] Fix XML Serializer Missing Parameter (#4729) --- .../ServiceModel/Dispatcher/XmlSerializerOperationFormatter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System.Private.ServiceModel/src/System/ServiceModel/Dispatcher/XmlSerializerOperationFormatter.cs b/src/System.Private.ServiceModel/src/System/ServiceModel/Dispatcher/XmlSerializerOperationFormatter.cs index 334921f2a25..165ada07cd2 100644 --- a/src/System.Private.ServiceModel/src/System/ServiceModel/Dispatcher/XmlSerializerOperationFormatter.cs +++ b/src/System.Private.ServiceModel/src/System/ServiceModel/Dispatcher/XmlSerializerOperationFormatter.cs @@ -387,7 +387,7 @@ private void SerializeBody(XmlDictionaryWriter writer, MessageVersion version, X } string encoding = _isEncoded ? GetEncoding(version.Envelope) : null; - serializer.Serialize(writer, bodyParameters, null); + serializer.Serialize(writer, bodyParameters, null, encoding); }