开发者

Passing message to client without using FAULT CONTRACT

Recently I have been asked in an interview as how to pass exception detail to client

without using FAULT CO开发者_如何学编程NTRACT.

I was not able to answer.

But I need to know it. So looking forward to hear about the same.


I guess they asked you for this:

<behavior>
  <serviceBehaviors>
    <behavior name="ExceptionBehavior">
      <serviceDebug includeExceptionDetailsInFaults="true" />
    </behavior>
  </serviceBehaviors>
</behavior>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜