Problem:
When an error message is created and returned to the client, specify action.
You just need to use the passed operationcontext. Current. incomingmessageheaders. Action.
You can perform one test to detect security exceptions. The client cannot receive the correct error information as scheduled.
According to Microsoft's ability to return examples and monitor results normally. The action is [http://www.w3.org/2005/08/addressing/soap/fault ].
Therefore, it is found that the action is set to null or the above monitoring results can be returned normally.
But why can't I receive the Action normally? Later I learned that as long as the namespace is set on the Service property, the normal value can be returned according to the original path.
Example:
[Servicecontract (name = "authservice", namespace = "http://si812cn.cnblogs.com/Gateway")]
Public interface iauthservice