Modify WCF Service Request before it is validated against Service Contract

前端 未结 1 965
滥情空心
滥情空心 2021-01-26 01:32

I have been trying to intercept the request just before making service call.

Using WCF Extensibility at Client Side

The idea behind this was to add certain prope

1条回答
  •  执笔经年
    2021-01-26 02:34

    Faulted channels usually results from a unexpected exception (not explicitly defined in the contract) thrown by the service in response to a client request. If it happens before the BeforeCall it can come from different causes.

    The first one that comes to mind is that you incorrectly plugged your IParameterInspecter and it doesn't go through it, you should start by testing if it is correctly plugged with a simplified scenario.

    If not, it might come from an authentication request being generated before the service method call as defined by establishSecurityContext="true" of the message security, the authentication request being rejected with an unexpected exception, it faults the channel and you can't use it anymore.

    There isn't enough information for me to think about other possibles causes. You should start by checking those and come back with additional code and/or configuration samples for further investigation.

    0 讨论(0)
提交回复
热议问题