dotnet / dotnet/wcf

Extend the Xml Serializer Generator to generate serializers for faults

Open
#3,768 1 comment 0 reactions 0 assignees View on GitHub
dotnet-svcutil.xmlserializer priority 2 tooling
Dominant language
C#
Stars
1.8k
Forks
576
Avg merge
6d 9h
Merged PRs (30d)
2

Description

@atanasa commented on [Mon Jul 01 2019](https://github.com/dotnet/corefx/issues/39089)

I have operations that use the XmlSerializer to serialize faults. The pregenerated serializers does not have serializers for those.

Is there an option to extend the svcutil serializer generator to emit code for those too?

I've noticed that if I don't pregenerate the serializers, at runtime the serializer that is generated in-memory generates mappings for faults (along with the request/responce serializers).
For some reason when I pregenerate the serializers, only the mappings of the request/response serializers are generated and faults are left to the default serializer.

Looking at the code, WCF already generated the mappings for the faults but does not include them for the pregenerated serializers for some reason.

---

@atanasa commented on [Tue Jul 02 2019](https://github.com/dotnet/corefx/issues/39089#issuecomment-507662992)

Maybe this should go to the WCF repo, as probably their code needs to be adapted to pass the fault mappings into the existing .Net Core code.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.