Soap service endpoint doesn't return a valid content-length

Soap service endpoint doesn’t return a valid content length when
ExpectAndReturnOldDotNetAssemblyReferences=true
in application.json