WCF client-side error-handling

后端 未结 3 690
粉色の甜心
粉色の甜心 2020-12-19 01:00

I\'m consuming a clunky WCF server that occasionally throws various exceptions, and additionally returns some of its errors as string. I have no access to the s

3条回答
  •  無奈伤痛
    2020-12-19 01:47

    If the service isn't returning a true exception, but just a message, you probably want to add a ClientMessageInspector as a new client behavior. Please see: https://msdn.microsoft.com/en-us/library/ms733786.aspx

提交回复
热议问题