Hendle WebService异常 [英] Hendle WebService Exception
本文介绍了Hendle WebService异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨所有
我面临一个关于网络服务异常的问题
i face one problem regarding webservice exception
我想要一个方法,比如
protected void Application_Error(Object sender,EventArgs e) { }
在asp的global.ascx中。 net project
in global.ascx in asp.net project
我想在网络服务中实施这种方法。 那我该怎么办?
i want to implement this type of method in web service. so how can i ?
请帮帮我
推荐答案
Hi Chirag vm,
Hi Chirag vm,
我通过try catch包围每个方法,然后使用facade模式处理异常,就像许多其他人一样解决了这个问题。
I was solving this problem like many others by surrounding each method by try catch and then handle the exception using facade pattern.
这里的解释:
我首选的解决方案是:
http://www.developer.com/net/csharp/article.php/3088231/Exception-Handling-in-Web-Services.htm
希望这会有所帮助
这篇关于Hendle WebService异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文