I am creating a WCF web service whose requests / responses should only be signed. For this, in the ServiceContract attribute, I set
ProtectionLevel = ProtectionLevel.Sign
This is working fine.
Due to the requirements, it is assumed that some SoapFaults will be reset from the service; Two types of SoapFaults:
- associated with the application
- associated with WS-Addressing (e.g. no MessageID)
To do this, I use the usual approach to working with SoafFaults: create an IErrorHandler in which an instance of Message is created with MessageFault.CreateFault.
Almost all returned SoapFaults are not encrypted (this is normal for me), my question is why those with action = "http://www.w3.org/2005/08/addressing/fault" or " http: // www. w3.org/2005/08/addressing/soap/fault "encrypted?
web-services wcf soapfault
csg
source share