[XmlSerializerFormat] annotation over interface can not create xml comment in WSDL file
Closed this issue · 7 comments
Why is this an issue?
Why is this an issue?
"xs:documentation" inside "xs:annotation" is missing if we use [XmlSerializerFormat]. Is there any workaround for it?
I don't see any way to make this work. WCFExtrasPlus works by implementing a DataContractsSurrogate to add annotation content. When the [XmlSerializerFormat] is used, it overrides the default DataContractSerializer and uses XmlSerializer. With the XmlSerializer, the DataContractsSurrogate is not used. There's no equivalent surrogate for the XmlSerializer.
I don't see any way to make this work. WCFExtrasPlus works by implementing a DataContractsSurrogate to add annotation content. When the [XmlSerializerFormat] is used, it overrides the default DataContractSerializer and uses XmlSerializer. With the XmlSerializer, the DataContractsSurrogate is not used. There's no equivalent surrogate for the XmlSerializer.
I have found a workaround by comparing the generate xml file and adding specific annotation while exporting endpoint.
I don't see any way to make this work. WCFExtrasPlus works by implementing a DataContractsSurrogate to add annotation content. When the [XmlSerializerFormat] is used, it overrides the default DataContractSerializer and uses XmlSerializer. With the XmlSerializer, the DataContractsSurrogate is not used. There's no equivalent surrogate for the XmlSerializer.
@lamronby
If you agree, I want to contribute regarding annotation support for XmlSerializerFormat
@safayatzisan Is the workaround you described something you implemented within the WCFExtrasPlus code? I would be interested in seeing the implementation.