I am trying to protect a .NET web service against XXE exploits. For the underlying SOAP message is XML, it is potentially at risk.
A way to prohibit DTD processing for XML documents can be found here and here. However, the XML parsing of the SOAP message is done by the framework.
How can I modify the settings of the XML reader in order to turn off DTD processing?
I also looked for a hook to access the XML content directly, but found nothing appropriate in the documentation of WebService.